isPrintable property

bool get isPrintable

Whether this is a printable character.

Implementation

bool get isPrintable =>
    type == KeyType.runes &&
    runes.isNotEmpty &&
    runes.first >= 0x20 &&
    runes.first < 0x7F;