OfflineFirstRepository<_RepositoryModel extends OfflineFirstModel> constructor

OfflineFirstRepository<_RepositoryModel extends OfflineFirstModel>({
  1. required Provider<Model> remoteProvider,
  2. required SqliteProvider sqliteProvider,
  3. bool? autoHydrate,
  4. MemoryCacheProvider? memoryCacheProvider,
  5. required Set<Migration> migrations,
  6. String? loggerName,
})

Implementation

OfflineFirstRepository({
  required this.remoteProvider,
  required this.sqliteProvider,
  bool? autoHydrate,
  MemoryCacheProvider? memoryCacheProvider,
  required Set<Migration> migrations,
  String? loggerName,
})  : autoHydrate = autoHydrate ?? false,
      logger = Logger(loggerName ?? 'OfflineFirstRepository'),
      migrationManager = MigrationManager(migrations),
      memoryCacheProvider = memoryCacheProvider ?? MemoryCacheProvider();