WebOptions constructor

const WebOptions({
  1. String dbName = 'FlutterEncryptedStorage',
  2. String publicKey = 'FlutterSecureStorage',
  3. String wrapKey = '',
  4. String wrapKeyIv = '',
  5. bool useSessionStorage = false,
})

Creates an instance of WebOptions with configurable parameters for secure storage behavior on web platforms.

Parameters:

  • dbName: The name of the database used for secure storage. Defaults to 'FlutterEncryptedStorage'.
  • publicKey: The public key used for encryption. Defaults to 'FlutterSecureStorage'.
  • wrapKey: The key used to wrap the encryption key.
  • wrapKeyIv: The initialization vector (IV) used for the wrap key.
  • useSessionStorage: Whether to use session storage instead of local storage. Defaults to false.

Implementation

const WebOptions({
  this.dbName = 'FlutterEncryptedStorage',
  this.publicKey = 'FlutterSecureStorage',
  this.wrapKey = '',
  this.wrapKeyIv = '',
  this.useSessionStorage = false,
});