Skip to content

vyuh_plugin_storage_secure ​

FlutterSecureStoragePlugin implements string persistence through flutter_secure_storage. Use the secureStorage slot in PluginDescriptor and consult the package setup for each target platform.

How the pieces fit together

Scroll or pinch to zoom · Drag to move · Esc to close

Package source · Released API

Choose a declaration ​

FlutterSecureStoragePlugin

FlutterSecureStoragePlugin ​

Source

A secure storage plugin implementation using flutter_secure_storage.

dart
class FlutterSecureStoragePlugin extends SecureStoragePlugin with InitOncePlugin

Directly declared public members:

dart
FlutterSecureStoragePlugin({this._androidOptions, this._iOSOptions, this._webOptions, this._macOSOptions, this._linuxOptions, this._windowsOptions});

Creates a new instance of FlutterSecureStoragePlugin with optional platform-specific options from flutter_secure_storage, which this package re-exports. Platforms without options use the package defaults.

dart
Future<void> initOnce();
dart
Future<String?> read(String key);

Reads a value from secure storage.

dart
Future<String?> write(String key, dynamic value);

Writes a value to secure storage.

dart
Future<bool> has(String key);

Checks if a key exists in secure storage.

dart
Future<bool> delete(String key);

Deletes a value from secure storage.

dart
Future<void> disposeOnce();

Releases the plugin. Stored values stay on the device; using the plugin again needs another init.