formatTildeToStrikethrough top-level property

CharacterShortcutEvent formatTildeToStrikethrough
getter/setter pair

format the text surrounded by single tilde to strikethrough

  • support
    • desktop
    • mobile
    • web

Implementation

CharacterShortcutEvent formatTildeToStrikethrough = CharacterShortcutEvent(
  key: 'format the text surrounded by single tilde to strikethrough',
  character: _tilde,
  handler: (editorState) async => handleFormatByWrappingWithSingleCharacter(
    editorState: editorState,
    character: _tilde,
    formatStyle: FormatStyleByWrappingWithSingleChar.strikethrough,
  ),
);