18 lines
308 B
Dart
18 lines
308 B
Dart
|
|
class CacheKey {
|
||
|
|
final String value;
|
||
|
|
|
||
|
|
const CacheKey(this.value);
|
||
|
|
|
||
|
|
@override
|
||
|
|
String toString() => value;
|
||
|
|
|
||
|
|
@override
|
||
|
|
bool operator ==(Object other) {
|
||
|
|
return identical(this, other) ||
|
||
|
|
(other is CacheKey && other.value == value);
|
||
|
|
}
|
||
|
|
|
||
|
|
@override
|
||
|
|
int get hashCode => value.hashCode;
|
||
|
|
}
|