formatAsteriskToItalic top-level property

CharacterShortcutEvent formatAsteriskToItalic
final

format the text surrounded by single asterisk to italic

  • support
    • desktop
    • mobile
    • web

Implementation

final CharacterShortcutEvent formatAsteriskToItalic = CharacterShortcutEvent(
  key: 'format the text surrounded by single asterisk to italic',
  character: _asterisk,
  handler: (editorState) async => handleFormatByWrappingWithSingleCharacter(
    editorState: editorState,
    character: _asterisk,
    formatStyle: FormatStyleByWrappingWithSingleChar.italic,
  ),
);