setSecureInternal method
Writes (or deletes if null) a value in the encrypted store.
Security Note: This is an asynchronous operation. While it returns immediately, the generated property ensures the UI is reactive even before the disk write completes.
Implementation
@protected
Future<void> setSecureInternal(String key, String? value) {
if (value == null) {
return _secureStorage.delete(key: key);
} else {
return _secureStorage.write(key: key, value: value);
}
}