first property

String get first

First character (code point). Throws StateError if empty.

Implementation

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