shared_preferences_moretypes

Pub Documentation

I wasn't able to save all the datatypes I liked so why not extend it ;)

Datatypes supported:

  • String
  • int
  • bool
  • double
  • Recursive Lists of the above (e.g List<double> List<double<double<double>>> e.t.c)
  • Recursive Maps of the above (e.g Map<String,String> Map<String,Map<int,String>> e.t.c)

Usage

save some data

await ExtendedPrefs().dataStore("keyS", "value");

load some saved data

await ExtendedPrefs().dataLoad("keyS", "String");