load method
Loads the value from the store.
Implementation
Future<T> load() async {
final val = await store.getItem(key);
if (val == null) return value;
return decode(val);
}
Loads the value from the store.
Future<T> load() async {
final val = await store.getItem(key);
if (val == null) return value;
return decode(val);
}