@@ -134,6 +134,9 @@ abstract class GlobalStore extends ChangeNotifier {
134
134
135
135
// More mutators as needed:
136
136
// Future<void> updateAccount...
137
+
138
+ @override
139
+ String toString () => '${objectRuntimeType (this , 'GlobalStore' )}#${shortHash (this )}' ;
137
140
}
138
141
139
142
/// Store for the user's data for a given Zulip account.
@@ -398,6 +401,9 @@ class PerAccountStore extends ChangeNotifier with StreamStore {
398
401
final nonDisplayFields = initialCustomProfileFields.where ((e) => e.displayInProfileSummary != true );
399
402
return displayFields.followedBy (nonDisplayFields).toList ();
400
403
}
404
+
405
+ @override
406
+ String toString () => '${objectRuntimeType (this , 'PerAccountStore' )}#${shortHash (this )}' ;
401
407
}
402
408
403
409
const _apiSendMessage = sendMessage; // Bit ugly; for alternatives, see: https://chat.zulip.org/#narrow/stream/243-mobile-team/topic/flutter.3A.20PerAccountStore.20methods/near/1545809
@@ -462,6 +468,9 @@ class LiveGlobalStore extends GlobalStore {
462
468
..where ((a) => a.id.equals (accountId))
463
469
).getSingle ();
464
470
}
471
+
472
+ @override
473
+ String toString () => '${objectRuntimeType (this , 'LiveGlobalStore' )}#${shortHash (this )}' ;
465
474
}
466
475
467
476
/// A [PerAccountStore] plus an event-polling loop to stay up to date.
@@ -573,4 +582,7 @@ class UpdateMachine {
573
582
if (token == null ) return ;
574
583
await NotificationService .registerToken (store.connection, token: token);
575
584
}
585
+
586
+ @override
587
+ String toString () => '${objectRuntimeType (this , 'UpdateMachine' )}#${shortHash (this )}' ;
576
588
}
0 commit comments