containsCursor method

bool containsCursor()

Implementation

bool containsCursor() {
  return _containsCursor ??= cursorCont.isFloatingCursorActive
      ? line.containsOffset(cursorCont.floatingCursorTextPosition.value!.offset)
      : textSelection.isCollapsed && line.containsOffset(textSelection.baseOffset);
}