RichTextBlock class

This component takes a string in through RichTextBlock.generate and recursively creates a tree of RichTextBlocks. This can then be converted into TextSpans with toTextSpans

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

getRenderedString() String
Returns a string of what would be rendered by this block
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
toTextSpans([TextStyle? style = const TextStyle(color: Colors.black)]) TextSpan
Returns a text span based on this rich text

Operators

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

Static Methods

generate(String inText) RichTextBlock
Generates the tree of RichTextBlocks from inText