copyWith method
ChangeDetail<T>
copyWith({
- String? collectionName,
- int? objectId,
- String? key,
- ChangeType? changeType,
- DateTime? timestamp,
- T? fullDocument,
- List<
FieldChange< ? fieldChanges,DocumentSerializable> >
Creates a copy with modified fields.
Implementation
ChangeDetail<T> copyWith({
String? collectionName,
int? objectId,
String? key,
ChangeType? changeType,
DateTime? timestamp,
T? fullDocument,
List<FieldChange>? fieldChanges,
}) => ChangeDetail<T>(
collectionName: collectionName ?? this.collectionName,
objectId: objectId ?? this.objectId,
key: key ?? this.key,
changeType: changeType ?? this.changeType,
timestamp: timestamp ?? this.timestamp,
fullDocument: fullDocument ?? this.fullDocument,
fieldChanges: fieldChanges ?? this.fieldChanges,
);