openCommandPaletteDetailed function

void openCommandPaletteDetailed({
  1. required List<CommandItemConfig> items,
  2. String placeholder = 'Type a command or search...',
  3. VoidCallback? onClose,
})

Opens the global command palette with full item configuration.

Implementation

void openCommandPaletteDetailed({
  required List<CommandItemConfig> items,
  String placeholder = 'Type a command or search...',
  VoidCallback? onClose,
}) {
  activeCommandPalette.value = CommandPaletteConfig(
    items: items,
    placeholder: placeholder,
    onClose: onClose,
  );
}