DualDataStore constructor
DualDataStore(
- String name, {
- required DataStoreFactory factory,
- 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,
);