delete method
Deletes the value corresponding to the key
.
For secure storage, iOptions
and aOptions
allow more control on the data access policy.
Implementation
Future<bool> delete({
required String key,
IOSOptions? iOptions,
AndroidOptions? aOptions,
}) async {
if (isMocking) {
mockEntries!.remove(key);
return true;
}
return _storage.delete(
key: key,
iOptions: iOptions ?? _iosOptions,
aOptions: aOptions ?? _androidOptions,
);
}