RichTextX class Null safety




RichTextX({Key? key, required TextSpan text, TextAlign textAlign = TextAlign.start, TextDirection? textDirection, bool softWrap = false, TextOverflow overflow = TextOverflow.ellipsis, double textScaleFactor = 1.0, int? maxLines, Locale? locale, StrutStyle? strutStyle, TextWidthBasis textWidthBasis = TextWidthBasis.parent, TextHeightBehavior? textHeightBehavior})


children List<Widget>
The widgets below this widget in the tree. [...]
final, inherited
hashCode int
The hash code for this object. [...]
@nonVirtual, read-only, inherited
key Key?
Controls how one widget replaces another widget in the tree. [...]
final, inherited
locale Locale?
Used to select a font when the same Unicode character can be rendered differently, depending on the locale. [...]
final, inherited
maxLines int?
An optional maximum number of lines for the text to span, wrapping if necessary. If the text exceeds the given number of lines, it will be truncated according to overflow. [...]
final, inherited
overflow TextOverflow
How visual overflow should be handled.
final, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
softWrap bool
Whether the text should break at soft line breaks. [...]
final, inherited
strutStyle StrutStyle?
The strut style to use. Strut style defines the strut, which sets minimum vertical layout metrics. [...]
final, inherited
text InlineSpan
The text to display in this widget.
final, inherited
textAlign TextAlign
How the text should be aligned horizontally.
final, inherited
textDirection TextDirection?
The directionality of the text. [...]
final, inherited
textHeightBehavior TextHeightBehavior?
Defines how the paragraph will apply TextStyle.height to the ascent of the first line and descent of the last line. [...]
final, inherited
textScaleFactor double
The number of font pixels for each logical pixel. [...]
final, inherited
textWidthBasis TextWidthBasis
Defines how to measure the width of the rendered text.
final, inherited


createElement() MultiChildRenderObjectElement
RenderObjectWidgets always inflate to a RenderObjectElement subclass.
createRenderObject(BuildContext context) RenderParagraphX
Creates an instance of the RenderObject class that this RenderObjectWidget represents, using the configuration described by this RenderObjectWidget. [...]
debugDescribeChildren() List<DiagnosticsNode>
Returns a list of DiagnosticsNode objects describing this node's children. [...]
@protected, inherited
debugFillProperties(DiagnosticPropertiesBuilder properties) → void
Add additional properties associated with the node. [...]
didUnmountRenderObject(covariant RenderObject renderObject) → void
A render object previously associated with this widget has been removed from the tree. The given RenderObject will be of the same type as returned by this object's createRenderObject.
@protected, inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
toDiagnosticsNode({String? name, DiagnosticsTreeStyle? style}) DiagnosticsNode
Returns a debug representation of the object that is used by debugging tools and by DiagnosticsNode.toStringDeep. [...]
toString({DiagnosticLevel minLevel =}) String
A string representation of this object. [...]
toStringDeep({String prefixLineOne = '', String? prefixOtherLines, DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a string representation of this node and its descendants. [...]
toStringShallow({String joiner = ', ', DiagnosticLevel minLevel = DiagnosticLevel.debug}) String
Returns a one-line detailed description of the object. [...]
toStringShort() String
A short, textual description of this widget.
updateRenderObject(BuildContext context, covariant RenderParagraphX renderObject) → void
Copies the configuration described by this RenderObjectWidget to the given RenderObject, which will be of the same type as returned by this object's createRenderObject. [...]


operator ==(Object other) bool
The equality operator. [...]
@nonVirtual, inherited