last property

String get last

Returns the last charcter of a string

Throws a StateError if this is empty.

Implementation

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