SelectionRect class

Represents a selection rect for a character and it's position in the text.

This is used to report the current text selection rect and position data to the engine for Scribble support on iPadOS 14.

Annotations

Constructors

SelectionRect({required int position, required Rect bounds, TextDirection direction = TextDirection.ltr})
Constructor for creating a SelectionRect from a text position and bounds.
const

Properties

bounds Rect
The rectangle representing the bounds of this selection rect within the currently focused RenderEditable's coordinate space.
final
direction TextDirection
The direction text flows within this selection rect.
final
hashCode int
The hash code for this object.
no setteroverride
position int
The position of this selection rect within the text String.
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