refactor: Added and applied require_trailing_commas linter rule
This commit is contained in:
parent
adb3f766e5
commit
ec7acc5385
112 changed files with 3466 additions and 2855 deletions
|
|
@ -111,7 +111,9 @@ Future<void> _tryPushHelper(
|
|||
await flutterLocalNotificationsPlugin.cancelAll();
|
||||
final store = await SharedPreferences.getInstance();
|
||||
await store.setString(
|
||||
SettingKeys.notificationCurrentIds, json.encode({}));
|
||||
SettingKeys.notificationCurrentIds,
|
||||
json.encode({}),
|
||||
);
|
||||
}
|
||||
}
|
||||
return;
|
||||
|
|
@ -237,7 +239,8 @@ Future<void> _tryPushHelper(
|
|||
Future<int> mapRoomIdToInt(String roomId) async {
|
||||
final store = await SharedPreferences.getInstance();
|
||||
final idMap = Map<String, int>.from(
|
||||
jsonDecode(store.getString(SettingKeys.notificationCurrentIds) ?? '{}'));
|
||||
jsonDecode(store.getString(SettingKeys.notificationCurrentIds) ?? '{}'),
|
||||
);
|
||||
int? currentInt;
|
||||
try {
|
||||
currentInt = idMap[roomId];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue