OfflineFirstRepository<_RepositoryModel extends OfflineFirstModel> constructor
OfflineFirstRepository<_RepositoryModel extends OfflineFirstModel> ({
- required Provider<
Model> remoteProvider, - required SqliteProvider sqliteProvider,
- bool? autoHydrate,
- MemoryCacheProvider? memoryCacheProvider,
- required Set<
Migration> migrations, - 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();