getHandleAnchor method
Get the anchor point of the handle relative to itself. The anchor point is the point that is aligned with a specific point in the text. A handle often visually "points to" that location.
Implementation
@override
Offset getHandleAnchor(TextSelectionHandleType type, double textLineHeight) {
switch (type) {
case TextSelectionHandleType.left:
return const Offset(_kHandleSize / 2, 30);
case TextSelectionHandleType.right:
return const Offset(_kHandleSize / 2, 0);
default:
return const Offset(_kHandleSize / 2 - 0.5, 0);
}
}