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:
Erisan Olasheni 2023-12-10 19:06:10 +01:00 committed by GitHub
parent 91c8cb9760
commit a6c99352e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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