remove method

Future<void> remove(
  1. String key
)

Removes and destroys the value stored under key.

Does nothing if the key does not exist.

Implementation

Future<void> remove(String key) async {
  try {
    await _storage.delete(key: key);
  } catch (e, st) {
    throw StorageException(
      message: 'Failed to remove key',
      key: key,
      cause: e,
      stackTrace: st,
    );
  }
}