copyWith method
Returns a copy with the given fields replaced. For a nullable
field pass a function, e.g. field: () => null to clear it.
Implementation
WriteGeneratedFilePart copyWith({
int? generationId,
int? offset,
String? data,
}) =>
WriteGeneratedFilePart(
generationId: generationId ?? this.generationId,
offset: offset ?? this.offset,
data: data ?? this.data,
);