toggleUnderlineCommand top-level property

CommandShortcutEvent toggleUnderlineCommand
final

Implementation

final CommandShortcutEvent toggleUnderlineCommand = CommandShortcutEvent(
  key: 'toggle underline',
  getDescription: () => AppFlowyEditorL10n.current.cmdToggleUnderline,
  command: 'ctrl+u',
  macOSCommand: 'cmd+u',
  handler: (editorState) => _toggleAttribute(
    editorState,
    AppFlowyRichTextKeys.underline,
  ),
);