toggleStrikethroughCommand top-level property

CommandShortcutEvent toggleStrikethroughCommand
final

Implementation

final CommandShortcutEvent toggleStrikethroughCommand = CommandShortcutEvent(
  key: 'toggle strikethrough',
  getDescription: () => AppFlowyEditorL10n.current.cmdToggleStrikethrough,
  command: 'ctrl+shift+s',
  macOSCommand: 'cmd+shift+s',
  handler: (editorState) => _toggleAttribute(
    editorState,
    AppFlowyRichTextKeys.strikethrough,
  ),
);