copyWith method
DatumChangeDetail<T>
copyWith({
- DatumOperationType? type,
- String? entityId,
- String? userId,
- T? data,
- DateTime? timestamp,
- String? sourceId,
Creates a copy of this object with modified fields.
Implementation
DatumChangeDetail<T> copyWith({
DatumOperationType? type,
String? entityId,
String? userId,
T? data,
DateTime? timestamp,
String? sourceId,
}) {
return DatumChangeDetail<T>(
type: type ?? this.type,
entityId: entityId ?? this.entityId,
userId: userId ?? this.userId,
data: data ?? this.data,
timestamp: timestamp ?? this.timestamp,
sourceId: sourceId ?? this.sourceId,
);
}