remove method

Future<void> remove(
  1. String key
)

Removes the value stored under key.

Does nothing if the key does not exist.

Implementation

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