TextSelectionBounds extension
Extension to add selection bounds support to TextCursorTracker.
Methods
-
getSelectionRectInView(
TextEditingController controller) → Rect? -
Available on TextCursorTracker, provided by the TextSelectionBounds extension
Get the bounding rect for the current text selection. -
getSelectionScreenRect(
TextEditingController controller, ScreenRect windowBounds) → ScreenRect? -
Available on TextCursorTracker, provided by the TextSelectionBounds extension
Get selection bounds in screen coordinates. -
hasSelection(
TextEditingController controller) → bool -
Available on TextCursorTracker, provided by the TextSelectionBounds extension
Whether there is an active (non-collapsed) selection.