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