MagnifierInfo class

A data class that contains the geometry information of text layouts and selection gestures, used to position magnifiers.

Annotations

Constructors

MagnifierInfo({required Offset globalGesturePosition, required Rect caretRect, required Rect fieldBounds, required Rect currentLineBoundaries})
Constructs a MagnifierInfo from provided geometry values.
const

Properties

caretRect Rect
The rect of the handle that the magnifier should follow.
final
currentLineBoundaries Rect
The rect of the current line the magnifier should be shown at, without taking into account any padding of the field; only the position of the first and last character.
final
fieldBounds Rect
The bounds of the entire text field that the magnifier is bound to.
final
globalGesturePosition Offset
The offset of the gesture position that the magnifier should be shown at.
final
hashCode int
The hash code for this object.
no setteroverride
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.
override

Constants

empty → const MagnifierInfo
Const MagnifierInfo with all values set to 0.