text property

String get text

The character for a KeyType.char event (empty otherwise).

Implementation

String get text =>
    type == KeyType.char && rune != null ? String.fromCharCode(rune!) : '';