dev
dart 27 lines 521 Bytes
Raw
1 mixin UnspentComparable {
2 String get address;
3
4 String get hash;
5
6 int get value;
7
8 int get vout;
9
10 String? get keyImage;
11
12 bool operator ==(Object other) {
13 if (identical(this, other)) return true;
14
15 return other is UnspentComparable &&
16 other.hash == hash &&
17 other.address == address &&
18 other.value == value &&
19 other.vout == vout &&
20 other.keyImage == keyImage;
21 }
22
23 @override
24 int get hashCode {
25 return Object.hash(address, hash, value, vout, keyImage);
26 }
27 }