CharacterShortcutEvent constructor

const CharacterShortcutEvent({
  1. required String key,
  2. required String character,
  3. required CharacterShortcutEventHandler handler,
})

Implementation

const CharacterShortcutEvent({
  required this.key,
  required this.character,
  required this.handler,
}) : assert(character.length == 1 && character != '\n',
          'character cannot be major than one char, and it must not be a new line');