removeAsync static method

Future<bool> removeAsync(
  1. String key
)

Removes a key and returns a Future that completes when the removal is done.

Implementation

static Future<bool> removeAsync(String key) async {
  _ensureInitialized();
  return await _prefs!.remove(key);
}