PushCaretRequest class

A ChangeSelectionRequest that represents a user's desire to push the caret upstream or downstream, such as when pressing LEFT or RIGHT.

It's useful to capture the user's desire to push the caret because sometimes the caret needs to jump past a piece of content that doesn't allow partial selection, such as a user tag. In the case of pushing the caret, we know which direction to jump over that content.

Inheritance

Constructors

PushCaretRequest(DocumentPosition newPosition, TextAffinity direction)

Properties

changeType SelectionChangeType
finalinherited
direction TextAffinity
final
hashCode int
The hash code for this object.
no setteroverride
newSelection DocumentSelection?
finalinherited
notifyListeners bool
Whether to notify DocumentComposer listeners when the selection is changed.
finalinherited
reason String
The reason that the selection changed, such as "user interaction".
finalinherited
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.
inherited

Operators

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