operator == method

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

you need override these two method: == / hashCode to ensure several PowerImageRequestOptionsSrc is Equal when you need use same cache

example

class Test extends PowerImageRequestOptionsSrc { final String a; final bool b;

@override bool operator ==(Object other) { if (other.runtimeType != runtimeType) { return false; }

return other is PowerImageRequestOptionsSrcNormal && other.a == a && other.b == b; }

@override int get hashCode => hashValues(a, b);

Implementation

@override
bool operator ==(Object other) {
  throw UnimplementedError();
}