copyWith method
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,
);
}