convertMinusesToDivider top-level property

CharacterShortcutEvent convertMinusesToDivider
final

insert divider into a document by typing three dashes (-) or one em dash (—) and one dash (-)

  • support
    • desktop
    • web
    • mobile

Implementation

final CharacterShortcutEvent convertMinusesToDivider = CharacterShortcutEvent(
  key: 'convert minuses to a divider',
  character: '-',
  handler: (editorState) async =>
      await _convertSyntaxToDivider(editorState, '--') ||
      await _convertSyntaxToDivider(editorState, '—'),
);