LineState class
Holds focus node and state for a line of text.
This is the editable variant of LineParagraph.
- Inheritance
-
- Object
- ParagraphState
- LineState
- Annotations
Constructors
-
LineState({required SpannedTextEditingController controller, required FocusNode focusNode, Iterable<
LineModifier> ? modifiers}) - Create a text line.
- LineState.built({required SpannedTextEditingController controller, required FocusNode focusNode, required LineModifierController modifierController})
-
Create a text line, directly providing the values for its fields.
const
Properties
- controller → SpannedTextEditingController
-
The TextEditingController that manages the text
and markup of this line.
final
- focusNode → FocusNode
-
Manages focus for this paragraph.
no setterinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
- modifierController → LineModifierController
-
Manages modifiers that can affect how this line is displayed.
final
-
modifiers
→ BuiltList<
LineModifier> -
Get the current list of modifiers stored by modifierController.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
dispose(
) → void -
Discards resources used by this object.
override
-
match<
T> ({required T line(LineState), required T embed(EmbedState)}) → T -
Execute
line
if this is a LineState andembed
if this is an EmbedState.override -
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