delete method

  1. @override
Future<void> delete(
  1. CalljmpStoreKey key
)
override

Deletes a value from secure storage and removes it from cache.

This method calls the native platform implementation to delete the stored value and removes it from the in-memory cache.

key The storage key to delete.

Returns a Future that completes when the value is deleted.

Example

await store.delete(CalljmpStoreKey.accessToken);

Implementation

@override
Future<void> delete(CalljmpStoreKey key) async {
  await methodChannel.invokeMethod("secureDelete", {"key": key.name});
  _cache.remove(key);
}