cursorRect property

Rect get cursorRect

The cursor's cell relative to the view's top-left corner (padding included); Rect.zero before the first layout or while the cursor is scrolled out of view.

Implementation

Rect get cursorRect => _viewKey.currentState?.cursorRect ?? Rect.zero;