LineEditor class

The text and cursor of an input field, with the usual editing commands.

Text is kept as a list of characters (runes) so the cursor never lands inside a surrogate pair. Lines are separated by \n.

Constructors

LineEditor()

Properties

chars → List<String>
no setter
cursor → int
Index into chars the cursor sits before.
no setter
hashCode → int
The hash code for this object.
no setterinherited
isEmpty → bool
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
no setter

Methods

backspace() → void
clear() → void
deleteForward() → void
deleteWordBefore() → void
down() → bool
Moves to the line below, keeping the column. False on the last line.
end() → void
home() → void
insert(String text) → void
killToEnd() → void
Deletes to the end of the line, or the line break when already there.
killToStart() → void
left() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
set(String text) → void
toString() → String
A string representation of this object.
inherited
up() → bool
Moves to the line above, keeping the column. False on the first line.
wordLeft() → void
wordRight() → void

Operators

operator ==(Object other) → bool
The equality operator.
inherited