formatDoubleHyphenEmDash top-level property
format two hyphens into an em dash
- support
- desktop
- mobile
- web
Implementation
final CharacterShortcutEvent formatDoubleHyphenEmDash = CharacterShortcutEvent(
key: 'format double hyphen into an em dash',
character: _hyphen,
handler: (editorState) async => handleDoubleCharacterReplacement(
editorState: editorState,
character: _hyphen,
replacement: _emDash,
),
);