formatUnderscoreToItalic top-level property

CharacterShortcutEvent formatUnderscoreToItalic
getter/setter pair

format the text surrounded by single underscore to italic

  • support
    • desktop
    • mobile
    • web

Implementation

CharacterShortcutEvent formatUnderscoreToItalic = CharacterShortcutEvent(
  key: 'format the text surrounded by single underscore to italic',
  character: _underscore,
  handler: (editorState) async => handleFormatByWrappingWithSingleCharacter(
    editorState: editorState,
    character: _underscore,
    formatStyle: FormatStyleByWrappingWithSingleChar.italic,
  ),
);