DataStoreManager constructor

DataStoreManager({
  1. required Duration persistenceThrottle,
  2. required void onSync()?,
  3. required PersistorSettings settings,
  4. required DataStoreFactory factory,
  5. required DataStoreResolverConfig resolverConfig,
  6. required DataStoreEncrypter encrypter,
  7. required Future<void> clearAll(),
  8. required Future<List<String>> getAll(),
  9. required Logger logger,
})

Implementation

DataStoreManager({
  required this.persistenceThrottle,
  required this.onSync,
  required this.settings,
  required this.factory,
  required this.resolverConfig,
  required this.encrypter,
  required Future<void> Function() clearAll,
  required Future<List<String>> Function() getAll,
  required Logger logger,
})  : _clearAll = clearAll,
      _getAll = getAll,
      logger = logger.child('DataStoreManager'),
      resolver = DataStoreResolver(resolverConfig)..logger = logger;