MarkdownEditorSlashCommand class

Host-provided slash command that inserts Markdown when selected.

Constructors

MarkdownEditorSlashCommand({required String title, required String searchText, required IconData icon, String? markdown, MarkdownEditorSlashCommandCallback? onSelected})
Creates a custom slash command.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
icon → IconData
Icon shown next to title.
final
markdown → String?
Markdown inserted when selected.
final
onSelected → MarkdownEditorSlashCommandCallback?
Dynamic Markdown producer used when markdown is not fixed.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
searchText → String
Lower-priority aliases used for slash-menu filtering.
final
title → String
Label shown in the slash menu.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited