Span class final
Represents part of a line that is continguous and styled the same way.
A Span is the smallest unit of text that can be styled, and usually combined in the Line type to represent a line of text where each Span may have a different style.
- Annotations
Constructors
Properties
- content → String
-
Content of the span.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- style → Style
-
Style of the span.
final
- width → int
-
Unicode width of the content held by this span.
no setter
Methods
-
copyWith(
{String? content, Style? style}) → Span -
Returns a copy of this span with the given
content
andstyle
. -
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