BlockNoteSlashCommandItem.bulletList constructor
BlockNoteSlashCommandItem.bulletList({})
Creates a slash command that inserts a bullet list item block.
Implementation
factory BlockNoteSlashCommandItem.bulletList({
required String title,
/// Optional text content for the inserted block.
String? content,
String? subtext,
String? badge,
List<String>? aliases,
String? group,
/// Optional icon: [String] (emoji/text) or [BlockNoteSlashCommandIcon].
Object? icon,
}) {
return BlockNoteSlashCommandItem(
title: title,
onItemClick: _insertBulletListItemJs(content: content),
subtext: subtext,
badge: badge,
aliases: aliases,
group: group,
icon: icon,
);
}