isFunctionKey property

bool get isFunctionKey

Whether this is a function key (F1-F20).

Implementation

bool get isFunctionKey {
  final index = type.index;
  return index >= KeyType.f1.index && index <= KeyType.f20.index;
}