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

View File

@@ -2,8 +2,7 @@ import 'package:openapi/api.dart';
class SyncEvent {
final SyncEntityType type;
// ignore: avoid-dynamic
final dynamic data;
final Object data;
final String ack;
const SyncEvent({required this.type, required this.data, required this.ack});