magnifierInfo property

ValueNotifier<MagnifierInfo> magnifierInfo
final

TextMagnifier positions itself based on magnifierInfo.

Positions itself based on magnifierInfo. Specifically, follows the following rules:

  • Tracks the gesture's x coordinate, but clamped to the beginning and end of the currently editing line.
  • Focal point may never contain anything out of bounds.
  • Never goes out of bounds vertically; offset until the entire magnifier is in the screen. The focal point, regardless of this transformation, always points to the touch y coordinate.
  • If just jumped between lines (prevY != currentY) then animate for duration jumpBetweenLinesAnimationDuration.

Implementation

final ValueNotifier<MagnifierInfo>
    magnifierInfo;