load method

Future<T> load()

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);
}