remove static method

Future<bool> remove(
  1. String? key
)

Removes an entry from persistent storage. Returns false if key is null.

Implementation

static Future<bool> remove(String? key) async {
  if (key == null) {
    return false;
  }
  final prefs = await instance;
  return prefs.remove(key);
}