delete method
Implementation
Future<void> delete(String key) async {
try {
final prefixedKey = '${StorageConfig.securePrefix}$key';
await _storage.delete(key: prefixedKey);
final currentData = Map<String, dynamic>.from(_dataSubject.value);
currentData.remove(key);
_dataSubject.add(currentData);
} catch (e) {
throw StorageException(
'Error eliminando dato seguro',
details: e.toString(),
type: StorageType.secure,
);
}
}