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