clearAsync static method

Future<bool> clearAsync()

Clears all data and returns a Future that completes when the clearing is done.

Implementation

static Future<bool> clearAsync() async {
  _ensureInitialized();
  return await _prefs!.clear();
}