remove method

Future<bool> remove(
  1. String key
)

删除key指向的存储 如果key存在则删除并返回true,否则返回false

Implementation

Future<bool> remove(String key) async {
  await _initialize();
  if (await hasKey(key)) {
    await _storage!.remove(key);
    return true;
  } else {
    return false;
  }
}