This PR adds filters in the CachedImageProvider in order to avoid the assertion errors throwed by the ImageChunkEvent
fyi : when the total response size is unknown by the Dio while executing a get method, the total parameter passed through the onReceivedProgress callback is -1, whereas ImageChunkEvent expects null in that case.
This PR adds filters in the
CachedImageProvider
in order to avoid the assertion errors throwed by theImageChunkEvent
fyi : when the total response size is unknown by the Dio while executing a get method, the
total
parameter passed through theonReceivedProgress
callback is -1, whereasImageChunkEvent
expectsnull
in that case.