SelectionRect class Null safety

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})
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
hashCode int
The hash code for this object.
read-onlyoverride
position int
The position of this selection rect within the text String.
final
runtimeType Type
A representation of the runtime type of the object.
read-onlyinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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