spaceShortcutEvents property

List<SpaceShortcutEvent> spaceShortcutEvents
final

Contains all the events that will be handled when space key is pressed

Supported by:

  • Web
  • Desktop

Example

// you can get also the default implemented shortcuts
// calling [standardSpaceShorcutEvents]
final defaultShorcutsImplementation =
      List.from([...standardSpaceShorcutEvents])

final spaceBulletList = SpaceShortcutEvent(
  character: '-',
  handler: (QuillText textNode, controller) {...your implementation}
);

Implementation

final List<SpaceShortcutEvent> spaceShortcutEvents;