Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.
Prev Previous commit
Next Next commit
fix linux test
  • Loading branch information
gaetschwartz committed Feb 6, 2021
commit 111922610c26b7686fa0df0eaaecfcf8374a5306
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,8 @@ class SharedPreferencesLinux extends SharedPreferencesStorePlatform {
if (localDataFile.existsSync()) {
String stringMap = localDataFile.readAsStringSync();
if (stringMap.isNotEmpty) {
_cachedPreferences = json.decode(stringMap) as Map<String, Object>?;
_cachedPreferences =
(json.decode(stringMap) as Map).cast<String, Object>();
}
}

Expand Down