copyWith method

SpanMarker copyWith({
  1. Attribution? attribution,
  2. int? offset,
  3. SpanMarkerType? markerType,
})

Returns a copy of this SpanMarker with optional new values for attribution, offset, and markerType.

Implementation

SpanMarker copyWith({
  Attribution? attribution,
  int? offset,
  SpanMarkerType? markerType,
}) =>
    SpanMarker(
      attribution: attribution ?? this.attribution,
      offset: offset ?? this.offset,
      markerType: markerType ?? this.markerType,
    );