operator == method

  1. @override
bool operator ==(
  1. Object other
)
override

Compares this image provider to another for equality.

Two DioImageProvider instances are considered equal if they have the same imageUrl and fallbackAssetPath.

Implementation

@override
bool operator ==(Object other) {
  if (identical(this, other)) return true;
  if (runtimeType != other.runtimeType) return false;
  final DioImageProvider typedOther = other as DioImageProvider;
  return imageUrl == typedOther.imageUrl &&
      fallbackAssetPath == typedOther.fallbackAssetPath;
}