copyWith method
Implementation
DataChange copyWith({
Relation? relation,
DataChangeType? type,
DbRecord? Function()? record,
DbRecord? Function()? oldRecord,
List<Tag>? tags,
}) {
return DataChange(
relation: relation ?? this.relation,
type: type ?? this.type,
record: record?.call() ?? this.record,
oldRecord: oldRecord?.call() ?? this.oldRecord,
tags: tags ?? this.tags,
);
}