We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c6328e commit 94f0e34Copy full SHA for 94f0e34
lib/src/data/indicator_state_change.dart
@@ -21,6 +21,16 @@ class IndicatorStateChange {
21
return currentState == from && newState == to;
22
}
23
24
+ @override
25
+ bool operator ==(Object other) =>
26
+ other.runtimeType == runtimeType &&
27
+ other is IndicatorStateChange &&
28
+ other.currentState == currentState &&
29
+ other.newState == newState;
30
+
31
32
+ int get hashCode => Object.hash(currentState, newState);
33
34
@override
35
String toString() =>
36
"$runtimeType(${describeEnum(currentState)} → ${describeEnum(newState)})";
0 commit comments