remove warning of non_nullable_equals_parameter

This commit is contained in:
Wenqi Li 2024-03-25 02:13:46 +08:00
parent ce6185ae1a
commit 72a0f5931d
3 changed files with 6 additions and 6 deletions

View File

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

View File

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

View File

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