remove warning of non_nullable_equals_parameter
This commit is contained in:
parent
ce6185ae1a
commit
72a0f5931d
@ -58,9 +58,9 @@ class AlbumThumbnailProvider extends ImageProvider<AlbumThumbnailProvider> {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
if (other.runtimeType != runtimeType) return false;
|
||||
final AlbumThumbnailProvider typedOther = other;
|
||||
final typedOther = other as AlbumThumbnailProvider;
|
||||
return album.id == typedOther.album.id;
|
||||
}
|
||||
|
||||
|
@ -39,9 +39,9 @@ class PhotoProvider extends ImageProvider<PhotoProvider> {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
if (other.runtimeType != runtimeType) return false;
|
||||
final PhotoProvider typedOther = other;
|
||||
final typedOther = other as PhotoProvider;
|
||||
return mediumId == typedOther.mediumId;
|
||||
}
|
||||
|
||||
|
@ -61,9 +61,9 @@ class ThumbnailProvider extends ImageProvider<ThumbnailProvider> {
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(dynamic other) {
|
||||
bool operator ==(Object other) {
|
||||
if (other.runtimeType != runtimeType) return false;
|
||||
final ThumbnailProvider typedOther = other;
|
||||
final typedOther = other as ThumbnailProvider;
|
||||
return mediumId == typedOther.mediumId;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user