copyWith method

WriteGeneratedFilePart copyWith({
  1. int? generationId,
  2. int? offset,
  3. String? data,
})

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,
    );