first property

String get first

Returns the first charcter of a string

Throws a StateError if this is empty.

Implementation

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