DataStoreConfig constructor

DataStoreConfig(
  1. String name, {
  2. required Future<ValueStore<ValueStore>?> hydrate(),
  3. required Future<void> persist(
    1. ValueStore<ValueStore>
    ),
  4. required Future<void> delete(),
  5. required bool encrypted,
  6. required DataStoreEncrypter encrypter,
  7. required Logger logger,
})

Implementation

DataStoreConfig(
  this.name, {
  required this.hydrate,
  required this.persist,
  required this.delete,
  required bool encrypted,
  required DataStoreEncrypter encrypter,
  required Logger logger,
}) : logger = logger.child('DataStore:$name');