Update packages, increment version, run dart fix

This commit is contained in:
Imran Remtulla
2023-12-17 14:54:54 -05:00
parent fd59a93ede
commit 5477b3f936
4 changed files with 5 additions and 5 deletions

View File

@@ -1230,7 +1230,7 @@ class AppsProvider with ChangeNotifier {
Future<MapEntry<int, bool>> import(String appsJSON) async {
var decodedJSON = jsonDecode(appsJSON);
var newFormat = !(decodedJSON is List);
var newFormat = decodedJSON is! List;
List<App> importedApps =
((newFormat ? decodedJSON['apps'] : decodedJSON) as List<dynamic>)
.map((e) => App.fromJson(e))