format dart files
formats all dart files using `dart format .` from the root project dir this makes the code style repeatable by new contributors and makes PR review easier
This commit is contained in:
1 parent
488a286701
commit
b34d684e67
66 files changed
+2882
-1848
No files matched your search
@@ -92,8 +92,9 @@ class UnreadStore {
|
||||
if (_pendingChannelLastRead == null) return;
|
||||
|
||||
final prefs = PrefsManager.instance;
|
||||
final asString =
|
||||
_pendingChannelLastRead!.map((key, value) => MapEntry(key.toString(), value));
|
||||
final asString = _pendingChannelLastRead!.map(
|
||||
(key, value) => MapEntry(key.toString(), value),
|
||||
);
|
||||
final jsonStr = jsonEncode(asString);
|
||||
await prefs.setString(_channelLastReadKey, jsonStr);
|
||||
_pendingChannelLastRead = null;
|
||||
@@ -104,9 +105,6 @@ class UnreadStore {
|
||||
_contactSaveTimer?.cancel();
|
||||
_channelSaveTimer?.cancel();
|
||||
|
||||
await Future.wait([
|
||||
_flushContactLastRead(),
|
||||
_flushChannelLastRead(),
|
||||
]);
|
||||
await Future.wait([_flushContactLastRead(), _flushChannelLastRead()]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user