BlockNoteSlashCommandItem.bulletList constructor

BlockNoteSlashCommandItem.bulletList({
  1. required String title,
  2. String? content,
  3. String? subtext,
  4. String? badge,
  5. List<String>? aliases,
  6. String? group,
  7. Object? icon,
})

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,
  );
}