remove method

Future<bool> remove(
  1. String key
)

删除指定键的数据

Implementation

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