isArrow property

bool get isArrow

Whether this is an arrow key.

Implementation

bool get isArrow =>
    type == KeyType.up ||
    type == KeyType.down ||
    type == KeyType.left ||
    type == KeyType.right;