delete method

Future<void> delete(
  1. String key
)

Implementation

Future<void> delete(String key) async {
  try {
    _storage.remove(key);

    final file = File('$storagePath/$key');
    await file.delete();
  } catch (e) {
    // Handle exceptions related to deleting from secure storage
    zprint('Error deleting $key from secure storage: $e');
  }
}