getHandleAnchor method
- TextSelectionHandleType type,
- double textLineHeight
override
Gets anchor for material-style text selection handles.
Implementation
@override
Offset getHandleAnchor(TextSelectionHandleType type, double textLineHeight) {
return switch (type) {
TextSelectionHandleType.collapsed => const Offset(_kHandleSize / 2, -4),
TextSelectionHandleType.left => const Offset(_kHandleSize, 0),
TextSelectionHandleType.right => Offset.zero,
};
}