charAtCursor property

String? get charAtCursor

Whole grapheme at cursor position, or null if cursor is at end.

Implementation

String? get charAtCursor => _cursorPosition < _buffer.length
    ? textAfterCursor.characters.first
    : null;