containsCursor method

bool containsCursor()

Implementation

bool containsCursor() {
  return _containsCursor ??= textSelection.isCollapsed &&
      line.containsOffset(textSelection.baseOffset);
}