characterShortcutEvents property
Contains all the events that will be handled when
the exact characters satifies the condition. This mean
if you press asterisk key, if you have a CharacterShortcutEvent
with
the asterisk then that event will be handled
Supported by:
- Web
- Desktop
Example
// you can get also the default implemented shortcuts
// calling [standardSpaceShorcutEvents]
final defaultShorcutsImplementation =
List.from([...standardCharactersShortcutEvents])
final boldFormat = CharacterShortcutEvent(
key: 'Shortcut event that will format current wrapped text in asterisk'
character: '*',
handler: (controller) {...your implementation}
);
Implementation
@experimental
final List<CharacterShortcutEvent> characterShortcutEvents;