OudsAnnotatedTextSegment class

A single run of text within an OudsAnnotatedText, optionally colored via colorResolver.

Constructors

OudsAnnotatedTextSegment(String text, [Color? colorResolver(BuildContext context)?])
const

Properties

colorResolver → Color? Function(BuildContext context)?
Resolves this segment's color from a BuildContext. Called lazily by OudsAnnotatedText.resolveSpans, from the consuming widget's own build() method.
final
hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
The text of this segment.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

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