last property

String last

Return the last charcter of a string

Throws a StateError if this is empty.

Implementation

String get last => String.fromCharCode(runes.last);