last

abstract fun last(): Char

Sets the position to getEndIndex()-1 (getEndIndex() if the text is empty) and returns the character at that position.

Return

the last character in the text, or DONE if the text is empty

See also

.getEndIndex