MarkdownEditorSlashCommand constructor

const MarkdownEditorSlashCommand({
  1. required String title,
  2. required String searchText,
  3. required IconData icon,
  4. String? markdown,
  5. 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);