copyWith method

DBConfig copyWith({
  1. int? dbVersion,
  2. String? dbType,
  3. bool? saveLocalDBLock,
  4. int? minDeletedCount,
  5. int? minDeletedSize,
  6. bool? saveBackupDBCompact,
  7. bool? autoCompact,
})

Implementation

DBConfig copyWith({
  int? dbVersion,
  String? dbType,
  bool? saveLocalDBLock,
  int? minDeletedCount,
  int? minDeletedSize,
  bool? saveBackupDBCompact,
  bool? autoCompact,
}) {
  return DBConfig(
    dbVersion: dbVersion ?? this.dbVersion,
    dbType: dbType ?? this.dbType,
    saveLocalDBLock: saveLocalDBLock ?? this.saveLocalDBLock,
    minDeletedCount: minDeletedCount ?? this.minDeletedCount,
    minDeletedSize: minDeletedSize ?? this.minDeletedSize,
    saveBackupDBCompact: saveBackupDBCompact ?? this.saveBackupDBCompact,
    autoCompact: autoCompact ?? this.autoCompact,
  );
}