SpannedStringBuilder class

Builds a SpannedString. Can be used fluently with cascades.

Constructors

SpannedStringBuilder()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

build() SpannedString
Finishes building and returns the created span.
end(TextAttribute attribute) → void
Stop formatting added text with attribute.
lineStyle(TextAttribute attr) → void
Apply an attribute to all text, including text written after calling this method. Typically used for attributes with SpanExpandRules.fixed.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
start(TextAttribute attribute) → void
Format written text with attribute until end is called for the passed attribute.
toString() String
A string representation of this object.
inherited
write(Object? obj, [Iterable<TextAttribute> attributes = const []]) → void
Write text to the internal string buffer.
writeln([Object? obj, Iterable<TextAttribute> attributes = const []]) → void
Write text to the internal string buffer, followed by a newline.

Operators

operator ==(Object other) bool
The equality operator.
inherited