clear static method

Future<bool> clear()

Clears all values from regular storage.

Warning: This will remove all stored data. Use with caution.

Implementation

static Future<bool> clear() async {
  try {
    return await _prefs.clear();
  } catch (e, stackTrace) {
    dump(
      '[JetStorage.clear] Error clearing storage: ${e.toString()}',
      stackTrace: stackTrace,
    );
    return false;
  }
}