MovementModifier class
Preferences for how the document selection should change, e.g., move word-by-word instead of character-by-character.
Default values are provided, such as MovementModifier.word. These defaults are understood by the default node implementations. If you introduce custom nodes/content, you can create your own MovementModifiers by instantiating them with ids of your choice, so long as those ids don't conflict with existing ids. You're responsible for implementing whatever behavior those custom MovementModifiers represent.
There is no default value for character-by-character movement because that is the default movement that occurs when no movement modifiers are at play.
Constructors
- MovementModifier(String id)
-
Creates a movement modifier that is globally uniquely identified by the
provided
id
.const
Properties
- hashCode → int
-
The hash code for this object.
no setteroverride
- id → String
-
Identifier that uniquely identifies this MovementModifier globally.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override
Constants
- line → const MovementModifier
- Move text selection line-by-line.
- word → const MovementModifier
- Move text selection word-by-word.