storage property

HydratedStorage storage

Instance of HydratedStorage which will be used to manage persisting/restoring the StateNotifier state.

Implementation

static HydratedStorage get storage {
  if (_storage == null) throw const StorageNotFound();
  return _storage!;
}
void storage=(HydratedStorage commonStorage)

Setter for instance of HydratedStorage which will be used to manage persisting/restoring the StateNotifier state.

Implementation

static set storage(HydratedStorage commonStorage) => _storage = commonStorage;