SpaceShortcutEvent constructor

SpaceShortcutEvent({
  1. required String character,
  2. required SpaceShortcutEventHandler handler,
})

Implementation

SpaceShortcutEvent({
  required this.character,
  required this.handler,
}) : assert(character != '\n' && character.trim().isNotEmpty,
          'character that cannot be empty, a whitespace or a new line. Ensure that you are passing a not empty character');