CharacterShortcutEvent constructor
const
CharacterShortcutEvent({
- required String key,
- required String character,
- 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');