TextSelectionHit class

A character endpoint and its squared distance from the pointer, measured in root artboard coordinates. Offsets throughout this API are Unicode code points, never UTF-16 code units.

Constructors

TextSelectionHit(int offset, double distanceSquared)
const

Properties

distanceSquared → double
final
hashCode → int
The hash code for this object.
no setterinherited
offset → int
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.
inherited

Operators

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