write method

Future<void> write(
  1. String key,
  2. String value
)

Implementation

Future<void> write(String key, String value) async {
  if (!isReady) await init();
  try {
    _storage[key] = value;

    await _saveToFile(key, value);
  } catch (e) {
    // Handle exceptions related to writing to secure storage
    zprint('Error writing to secure storage: $e');
  }
}