mirror of
https://github.com/zjs81/meshcore-open.git
synced 2026-07-03 23:40:57 +10:00
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:
@@ -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