test(mobile): store (#16243)

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong 2025-02-21 20:40:42 +05:30 committed by GitHub
parent 5acf6868b7
commit 94c0e8253a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 399 additions and 14 deletions

View file

@ -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;
}