write method
Writes a value to the secure keystore.
Platform implementations should override this method to provide platform-specific secure storage functionality.
Parameters
key- The unique identifier for the valuevalue- The data to store securelystorageName- Optional storage name for organizing keys
Implementation
@override
Future<void> write(String key, String value, {String? storageName}) async {
await methodChannel.invokeMethod('write', {
'key': key,
'value': value,
'storageName': storageName,
});
}