RenderAbstractEditor class abstract
Base interface for editable render objects.
- Implemented types
- Implementers
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getEndpointsForSelection(
TextSelection textSelection) → 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.
inherited
-
getLocalRectForCaret(
TextPosition position) → Rect - Returns Rect for caret in local coordinates
-
getPositionForOffset(
Offset offset) → TextPosition - Returns the local coordinates of the endpoints of the given selection.
-
getTextPositionAbove(
TextPosition position) → TextPosition -
Returns the TextPosition above the given offset into the text.
inherited
-
getTextPositionBelow(
TextPosition position) → TextPosition -
Returns the TextPosition below the given offset into the text.
inherited
-
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.
inherited
-
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.
inherited
-
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, required SelectionChangedCause cause, Offset? to}) → TextSelection? - Returns the new selection. Note that the returned value may not be yet reflected in the latest widget state.
-
selectWord(
SelectionChangedCause cause) → void - Select a word around the location of the last tap down.
-
selectWordAtPosition(
TextPosition position) → TextSelection -
selectWordEdge(
SelectionChangedCause cause) → void - Move the selection to the beginning or end of a word.
-
selectWordsInRange(
Offset from, Offset to, 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. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited