BlockNoteSlashCommandItem class

Slash command item configuration.

Constructors

BlockNoteSlashCommandItem({required String title, String? onItemClick, String? onItemClickScriptPath, String? subtext, String? badge, List<String>? aliases, String? group, Object? icon})
Creates a new slash command item.
BlockNoteSlashCommandItem.bulletList({required String title, String? content, String? subtext, String? badge, List<String>? aliases, String? group, Object? icon})
Creates a slash command that inserts a bullet list item block.
factory
BlockNoteSlashCommandItem.checkList({required String title, String? content, String? subtext, String? badge, List<String>? aliases, String? group, Object? icon})
Creates a slash command that inserts a check list item block.
factory
BlockNoteSlashCommandItem.fromJson(Map<String, dynamic> json)
Creates a BlockNoteSlashCommandItem from a JSON map.
factory
BlockNoteSlashCommandItem.heading1({required String title, String? content, String? subtext, String? badge, List<String>? aliases, String? group, Object? icon})
Creates a slash command that inserts a heading level 1 block.
factory
BlockNoteSlashCommandItem.heading2({required String title, String? content, String? subtext, String? badge, List<String>? aliases, String? group, Object? icon})
Creates a slash command that inserts a heading level 2 block.
factory
BlockNoteSlashCommandItem.heading3({required String title, String? content, String? subtext, String? badge, List<String>? aliases, String? group, Object? icon})
Creates a slash command that inserts a heading level 3 block.
factory
BlockNoteSlashCommandItem.numberedList({required String title, String? content, String? subtext, String? badge, List<String>? aliases, String? group, Object? icon})
Creates a slash command that inserts a numbered list item block.
factory
BlockNoteSlashCommandItem.paragraph({required String title, String? content, String? subtext, String? badge, List<String>? aliases, String? group, Object? icon})
Creates a slash command that inserts a paragraph block.
factory
BlockNoteSlashCommandItem.quote({required String title, String? content, String? subtext, String? badge, List<String>? aliases, String? group, Object? icon})
Creates a slash command that inserts a quote block.
factory
BlockNoteSlashCommandItem.toggleList({required String title, String? content, String? subtext, String? badge, List<String>? aliases, String? group, Object? icon})
Creates a slash command that inserts a toggle list item block.
factory

Properties

aliases List<String>?
Aliases for filtering (optional).
final
badge String?
Badge text (optional, typically shows keyboard shortcut).
final
group String?
Group name (optional).
final
hashCode int
The hash code for this object.
no setteroverride
icon Object?
Icon (optional).
final
onItemClick String?
Inline JavaScript code to execute when the item is clicked.
final
onItemClickScriptPath String?
Asset path to a JavaScript file whose content is used as the click handler.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
subtext String?
Subtitle text (optional).
final
title String
Title of the command item.
final

Methods

copyWith({String? title, String? onItemClick, Object? onItemClickScriptPath = _unset, Object? subtext = _unset, Object? badge = _unset, Object? aliases = _unset, Object? group = _unset, Object? icon = _unset}) BlockNoteSlashCommandItem
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Converts this slash command item to JSON.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override