Minor fix on the operator check
Made minor change on the `==` operator to validate if the compared `Object` `imageProvider` matches the current `Object`.
This commit is contained in:
parent
91c8cb9760
commit
a6c99352e6
@ -90,7 +90,7 @@ class RetryImage extends ImageProvider<Object> {
|
|||||||
if (other.runtimeType != runtimeType) {
|
if (other.runtimeType != runtimeType) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return other is RetryImage && other.imageProvider == other.imageProvider && other.scale == scale;
|
return other is RetryImage && other.imageProvider == imageProvider && other.scale == scale;
|
||||||
}
|
}
|
||||||
|
|
||||||
@override
|
@override
|
||||||
|
Loading…
x
Reference in New Issue
Block a user