remove static method

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

移除sp中key的值

Implementation

static Future<bool> remove(String? key) async {
  if (key == null || key.isEmpty) {
    return false;
  }
  return await _preferences.remove(key);
}