MarkdownEditorSlashCommand constructor
const
MarkdownEditorSlashCommand({
- required String title,
- required String searchText,
- required IconData icon,
- String? markdown,
- MarkdownEditorSlashCommandCallback? onSelected,
Creates a custom slash command.
Implementation
const MarkdownEditorSlashCommand({
required this.title,
required this.searchText,
required this.icon,
this.markdown,
this.onSelected,
}) : assert(markdown != null || onSelected != null);