save method

Future<void> save(
  1. T value
)

Saves the value to the store.

Implementation

Future<void> save(T value) async {
  final str = encode(value);
  await store.setItem(key, str);
}