removeFromSecure function

Future<void> removeFromSecure(
  1. String key
)

Removes a value from secure storage

Implementation

Future<void> removeFromSecure(String key) async {
  // For this implementation, we'll use SharedPreferences as a simple storage
  final prefs = await SharedPreferences.getInstance();
  await prefs.remove('onairos_$key');
}