copyWith method

SMDBConfig copyWith({
  1. bool? autoCompact,
  2. bool? saveLocalIndexLockFile,
  3. OnNeedToCompactCallback? needToCompact,
  4. String? dbType,
  5. int? dbVersion,
  6. bool? whenCompactAndCreateBkFile,
})

Implementation

SMDBConfig copyWith({
  bool? autoCompact,
  bool? saveLocalIndexLockFile,
  OnNeedToCompactCallback? needToCompact,
  String? dbType,
  int? dbVersion,
  bool? whenCompactAndCreateBkFile,
}) {
  return SMDBConfig(
    autoCompact: autoCompact ?? this.autoCompact,
    whenCompactAndCreateBkFile:
        whenCompactAndCreateBkFile ?? this.whenCompactAndCreateBkFile,
    saveLocalIndexLockFile:
        saveLocalIndexLockFile ?? this.saveLocalIndexLockFile,
    needToCompact: needToCompact ?? this.needToCompact,
    dbType: dbType ?? this.dbType,
    dbVersion: dbVersion ?? this.dbVersion,
  );
}