getCursorPositionAt method
Get the cursor position (top-left of cursor rect) at a specific offset.
Implementation
Offset? getCursorPositionAt(int offset) {
final rect = getCursorRectAt(offset);
return rect != null ? Offset(rect.left, rect.top) : null;
}