SpanMarker class
Marks the start or end of an attribution span.
The given AttributionType
must implement equality for
span management to work correctly.
- Implemented types
Constructors
- SpanMarker({required Attribution attribution, required int offset, required SpanMarkerType markerType})
-
Constructs a SpanMarker with the given
attribution
,offset
within some discrete content, andmarkerType
ofstart
orend
.const
Properties
- attribution → Attribution
-
The attribution that exists between this SpanMarker and its
other endpoint.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isEnd → bool
-
Returns true if this marker is a SpanMarkerType.end marker.
no setter
- isStart → bool
-
Returns true if this marker is a SpanMarkerType.start marker.
no setter
- markerType → SpanMarkerType
-
The type of SpanMarker, either
start
orend
.final - offset → int
-
The position of this SpanMarker within some discrete content.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
compareTo(
SpanMarker other) → int -
Compares this object to another object.
override
-
copyWith(
{Attribution? attribution, int? offset, SpanMarkerType? markerType}) → SpanMarker -
Returns a copy of this SpanMarker with optional new values
for
attribution
,offset
, andmarkerType
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override