newSecureStorageVaultStore function

Future<SecureStorageVaultStore> newSecureStorageVaultStore({
  1. StoreCodec? codec,
  2. IOSOptions? iOptions,
  3. AndroidOptions? aOptions,
  4. LinuxOptions? lOptions,
  5. WindowsOptions? wOptions,
  6. WebOptions? webOptions,
  7. MacOsOptions? mOptions,
})

Creates a SecureStorageVaultStore

  • codec: The StoreCodec used to convert to/from a Map<String, dynamic>` representation to a binary representation
  • iOptions: optional iOS options
  • aOptions: optional Android options
  • lOptions: optional Linux options
  • webOptions: optional web options
  • mOptions: optional MacOs options
  • wOptions: optional Windows options

Implementation

Future<SecureStorageVaultStore> newSecureStorageVaultStore(
    {StoreCodec? codec,
    IOSOptions? iOptions,
    AndroidOptions? aOptions,
    LinuxOptions? lOptions,
    WindowsOptions? wOptions,
    WebOptions? webOptions,
    MacOsOptions? mOptions}) {
  return SecureStorageAdapter.build()
      .then((adapter) => SecureStorageVaultStore(adapter, codec: codec));
}