mirror of
https://github.com/immich-app/immich
synced 2025-11-07 17:27:20 +00:00
test(mobile): store (#16243)
Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
parent
5acf6868b7
commit
94c0e8253a
7 changed files with 399 additions and 14 deletions
|
|
@ -77,4 +77,23 @@ class StoreUpdateEvent<T> {
|
|||
final T? value;
|
||||
|
||||
const StoreUpdateEvent(this.key, this.value);
|
||||
|
||||
@override
|
||||
String toString() {
|
||||
return '''
|
||||
StoreUpdateEvent: {
|
||||
key: $key,
|
||||
value: ${value ?? '<NA>'},
|
||||
}''';
|
||||
}
|
||||
|
||||
@override
|
||||
bool operator ==(covariant StoreUpdateEvent<T> other) {
|
||||
if (identical(this, other)) return true;
|
||||
|
||||
return other.key == key && other.value == value;
|
||||
}
|
||||
|
||||
@override
|
||||
int get hashCode => key.hashCode ^ value.hashCode;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue