delete method

  1. @override
Future<void> delete(
  1. String key
)

Deletes the entry for the given key.

Does nothing if the key is not found.

Implementation

@override
Future<void> delete(String key) async {
  if (_needsInit) await _initPrefs();
  await _prefs!.remove(key);
}