ParagraphComponentViewModel class

Inheritance
Mixed-in types

Constructors

ParagraphComponentViewModel({required String nodeId, double? maxWidth, EdgeInsetsGeometry padding = EdgeInsets.zero, Attribution? blockType, int indent = 0, TextBlockIndentCalculator indentCalculator = defaultParagraphIndentCalculator, required AttributedText text, required AttributionStyleBuilder textStyleBuilder, TextDirection textDirection = TextDirection.ltr, TextAlign textAlignment = TextAlign.left, TextScaler? textScaler, TextSelection? selection, required Color selectionColor, bool highlightWhenEmpty = false, TextRange? composingRegion, bool showComposingRegionUnderline = false, UnderlineStyle spellingErrorUnderlineStyle = const SquiggleUnderlineStyle(color: Color(0xFFFF0000)), List<TextRange> spellingErrors = const <TextRange>[]})

Properties

blockType Attribution?
getter/setter pair
composingRegion TextRange?
The span of text that's currently sitting in the IME's composing region, which is underlined by this component.
getter/setter pairinherited
composingRegionUnderlineStyle UnderlineStyle
getter/setter pairinherited
hashCode int
The hash code for this object.
no setteroverride
highlightWhenEmpty bool
getter/setter pairoverride
indent int
getter/setter pair
indentCalculator TextBlockIndentCalculator
getter/setter pair
maxWidth double?
The maximum width of this component in the layout, or null to defer to the layout's preference.
getter/setter pairinherited
nodeId String
finalinherited
padding EdgeInsetsGeometry
The padding applied around this component.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selection TextSelection?
getter/setter pairoverride
selectionColor Color
getter/setter pairoverride
showComposingRegionUnderline bool
Whether to underline the composingRegion.
getter/setter pairinherited
spellingErrors List<TextRange>
getter/setter pairinherited
spellingErrorUnderlineStyle UnderlineStyle
getter/setter pairinherited
text AttributedText
getter/setter pairoverride
textAlignment TextAlign
getter/setter pairoverride
textDirection TextDirection
getter/setter pairoverride
textScaler TextScaler?
The text scaling policy.
getter/setter pair
textStyleBuilder AttributionStyleBuilder
getter/setter pairoverride

Methods

applyStyles(Map<String, dynamic> styles) → void
inherited
copy() ParagraphComponentViewModel
override
createUnderlines() List<Underlines>
inherited
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.
override