dev
dart 13 lines 302 Bytes
Raw
1 abstract class Enumerate {
2 String get value;
3
4 @override
5 bool operator ==(other) {
6 if (identical(other, this)) return true;
7 if (other is! Enumerate) return false;
8 return other.runtimeType == runtimeType && value == other.value;
9 }
10
11 @override
12 int get hashCode => value.hashCode;
13 }