newGenericVault<T> abstract method

Future<Vault<T>> newGenericVault<T>(
  1. Store<VaultInfo, VaultEntry> store, {
  2. String? name,
  3. dynamic fromEncodable(
    1. Map<String, dynamic>
    )?,
  4. Clock? clock,
  5. EventListenerMode? eventListenerMode,
  6. bool? statsEnabled,
  7. VaultStats? stats,
})

Builds a new Vault

  • store: The Store that will back this Vault
  • name: The name of the vault
  • fromEncodable: The function that converts between the Map representation of the object and the object itself.
  • clock: The source of time to be used on this, defaults to the system clock if not provided
  • eventListenerMode: The event listener mode of this vault
  • statsEnabled: If statistics should be collected, defaults to false
  • stats: The statistics instance

Returns a new GenericVault

Implementation

Future<Vault<T>> newGenericVault<T>(Store<VaultInfo, VaultEntry> store,
    {String? name,
    dynamic Function(Map<String, dynamic>)? fromEncodable,
    Clock? clock,
    EventListenerMode? eventListenerMode,
    bool? statsEnabled,
    VaultStats? stats});