refactor: logger service and remove dynamic (#17733)

Co-authored-by: shenlong-tanwen <139912620+shalong-tanwen@users.noreply.github.com>
This commit is contained in:
shenlong 2025-06-09 08:31:31 +05:30 committed by GitHub
parent 7b2237b86b
commit 2d05a5482f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 119 additions and 140 deletions

View file

@ -75,23 +75,23 @@ enum StoreKey<T> {
Type get type => T;
}
class StoreUpdateEvent<T> {
class StoreDto<T> {
final StoreKey<T> key;
final T? value;
const StoreUpdateEvent(this.key, this.value);
const StoreDto(this.key, this.value);
@override
String toString() {
return '''
StoreUpdateEvent: {
StoreDto: {
key: $key,
value: ${value ?? '<NA>'},
}''';
}
@override
bool operator ==(covariant StoreUpdateEvent<T> other) {
bool operator ==(covariant StoreDto<T> other) {
if (identical(this, other)) return true;
return other.key == key && other.value == value;