clearAllValues static method

Future<void> clearAllValues()

Implementation

static Future<void> clearAllValues() async {
  // if (kIsWeb) {
  //   window.localStorage.clear();
  // } else {
  //   await SharedPreferences.getInstance().then((prefs) => {prefs.clear()});
  // }
    await SharedPreferences.getInstance().then((prefs) => {prefs.clear()});
}