readFromPersistentStorage method Null safety
Implementation
Future<void> readFromPersistentStorage() async {
final storage = await SharedPreferences.getInstance();
String? js = storage.getString(_persistentStorageKey);
if (js != null) {
try {
decodeJson(json.decode(js) as Map<String, dynamic>, needsSave: false);
} finally {
display.displayX(flash: false);
}
}
}