unset static method

Future<bool> unset(
  1. String key
)

Implementation

static Future<bool> unset(String key) async {
  if (_box == null) openBox();
  if (_box?.containsKey(key) ?? false) {
    await _box?.delete(key);
    return true;
  }
  return false;
}