DualDataStore constructor

DualDataStore(
  1. String name, {
  2. required DataStoreFactory factory,
  3. required DataStoreEncrypter encrypter,
})

Implementation

DualDataStore(
  this.name, {
  required DataStoreFactory factory,
  required DataStoreEncrypter encrypter,
})  : _plaintextStore = factory(name, false, encrypter),
      _encryptedStore = factory(
        '$name.${DataStoreEncrypter.encryptedName}',
        true,
        encrypter,
      );