charAtCursor property

String? get charAtCursor

Character at cursor position, or null if cursor is at end.

Implementation

String? get charAtCursor =>
    _cursorPosition < _buffer.length ? text[_cursorPosition] : null;