getCursorRectInPosition method
Returns Rect for the position in current widget.
The return result must be an offset of the local coordinate system.
Implementation
@override
Rect? getCursorRectInPosition(
Position position, {
bool shiftWithBaseOffset = false,
}) {
final rects = getRectsInSelection(Selection.collapsed(position));
return rects.firstOrNull;
}