first property

String first

Return the first charcter of a string

Throws a StateError if this is empty.

Implementation

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