StorageOptions constructor

const StorageOptions({
  1. String? destroyKey,
  2. StorageCacheTime cacheTime = const StorageCacheTime(Duration(days: 2)),
})

Options to enable a Storage to persist state.

Those are passed to NotifierPersistX.persist.

Implementation

const StorageOptions({
  this.destroyKey,
  this.cacheTime = const StorageCacheTime(Duration(days: 2)),
});