textBeforeCursor property

String get textBeforeCursor

Text before the cursor.

Implementation

String get textBeforeCursor => text.substring(0, _cursorPosition);