NyStorageKey extension
- on
Methods
- 
  addToCollection<T> (dynamic value, {bool allowDuplicates = true}) → Future 
- 
      Available on StorageKey, provided by the NyStorageKey extension Add a value to a collection in NyStorage You can also setallowDuplicatesto false to prevent duplicates
- 
  defaultValue<T> (dynamic value) → Future Function(bool inBackpack)? 
- 
      Available on StorageKey, provided by the NyStorageKey extension Set a default value for a StorageKey
- 
  deleteFromStorage({bool andFromBackpack = true}) → Future 
- 
      Available on StorageKey, provided by the NyStorageKey extension Delete a StorageKey value from NyStorage
- 
  flush({bool andFromBackpack = true}) → Future 
- 
      Available on StorageKey, provided by the NyStorageKey extension Flush data from NyStorage
- 
  fromBackpack<T> ({dynamic defaultValue}) → T? 
- 
      Available on StorageKey, provided by the NyStorageKey extension Read a value from the Backpack instance.
- 
  fromStorage<T> ({dynamic defaultValue}) → Future< T?> 
- 
      Available on StorageKey, provided by the NyStorageKey extension Read a StorageKey value from NyStorage
- 
  read<T> ({dynamic defaultValue}) → Future< T?> 
- 
      Available on StorageKey, provided by the NyStorageKey extension Read a StorageKey value from NyStorage
- 
  readCollection<T> () → Future< List< T> >
- 
      Available on StorageKey, provided by the NyStorageKey extension Read a collection from NyStorage
- 
  readJson<T> ({dynamic defaultValue}) → Future< T?> 
- 
      Available on StorageKey, provided by the NyStorageKey extension Read a JSON value from NyStorage
- 
  save(dynamic value, {bool inBackpack = false}) → Future 
- 
      Available on StorageKey, provided by the NyStorageKey extension Store a value in NyStorage You can also save a value in the backpack by settinginBackpackto true
- 
  saveJson(dynamic value, {bool inBackpack = false}) → Future 
- 
      Available on StorageKey, provided by the NyStorageKey extension Store a JSON value in NyStorage You can also save a value in the backpack by settinginBackpackto true
- 
  toModel<T> () → T 
- 
      Available on StorageKey, provided by the NyStorageKey extension Attempt to convert a String into a model by using your model decoders.