RenderAbstractEditor class abstract

Base interface for editable render objects.

Implemented types




hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited


getEndpointsForSelection(TextSelection selection) List<TextSelectionPoint>
Returns the local coordinates of the endpoints of the given selection.
getLineAtOffset(TextPosition position) TextSelection
Return a TextSelection containing the line of the given TextPosition.
getLocalRectForCaret(TextPosition position) Rect
Returns Rect for caret in local coordinates
getPositionForOffset(Offset offset) TextPosition
getTextPositionAbove(TextPosition position) TextPosition
Returns the TextPosition above the given offset into the text.
getTextPositionBelow(TextPosition position) TextPosition
Returns the TextPosition below the given offset into the text.
getWordBoundary(TextPosition position) TextRange
Returns the text range of the word at the given offset. Characters not part of a word, such as spaces, symbols, and punctuation, have word breaks on both sides. In such cases, this method will return a text range that contains the given text position.
handleSecondaryTapDown(TapDownDetails details) → void
Tracks the position of a secondary tap event.
handleTapDown(TapDownDetails details) → void
If ignorePointer is false (the default) then this method is called by the internal gesture recognizer's TapGestureRecognizer.onTapDown callback.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
preferredLineHeight(TextPosition position) double
Returns preferred line height at specified position in text.
selectLineAtPosition(TextPosition position) TextSelection
selectPosition({required SelectionChangedCause cause}) → void
Move selection to the location of the last tap down.
selectPositionAt({required Offset from, Offset? to, required SelectionChangedCause cause}) TextSelection?
Select text between the global positions from and to.
selectWord({required SelectionChangedCause cause}) → void
Select a word around the location of the last tap down.
selectWordAtPosition(TextPosition position) TextSelection
selectWordEdge({required SelectionChangedCause cause}) → void
Move the selection to the beginning or end of a word.
selectWordsInRange({required Offset from, Offset? to, required SelectionChangedCause cause}) → void
Selects the set words of a paragraph in a given range of global positions.
setFloatingCursor(FloatingCursorDragState dragState, Offset lastBoundedOffset, TextPosition lastTextPosition, {double? resetLerpValue}) → void
Sets the screen position of the floating cursor and the text position closest to the cursor. resetLerpValue drives the size of the floating cursor. See EditorState.floatingCursorResetController.
startVerticalCaretMovement(TextPosition startPosition) FleatherVerticalCaretMovementRun
Starts a FleatherVerticalCaretMovementRun at the given location in the text, for handling consecutive vertical caret movements.
toString() String
A string representation of this object.


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