remove method
Removes one or more items from storage.
keys
A single key or a list of keys for items to remove.
returns
Callback on success, or on failure (in which case
runtime.lastError
will be set).
Implementation
Future<void> remove(Object keys) async {
await promiseToFuture<void>(_wrapped.remove(switch (keys) {
String() => keys.jsify()!,
List() => keys.toJSArrayString(),
_ => throw UnsupportedError(
'Received type: ${keys.runtimeType}. Supported types are: String, List<String>')
}));
}