normalizeKey static method

String normalizeKey(
  1. String label
)

label as combinations compare it.

Implementation

static String normalizeKey(String label) => switch (label.replaceAll(' ', '').toLowerCase()) {
      'esc' => 'escape',
      'return' => 'enter',
      'spacebar' => 'space',
      final k => k,
    };