remove static method

Future<bool> remove(
  1. String key
)

Remove specific the key.

Implementation

static Future<bool> remove(String key) async {
  final prefs = await SharedPreferences.getInstance();
  return prefs.remove(key);
}