CommandPalette constructor
CommandPalette({
- required Widget child,
- required List<
CommandPaletteItem> items, - bool open = false,
- String? title,
- String? hint,
- CmdCallback? onDismiss,
- ValueCmdCallback<
CommandPaletteItem> ? onSelect, - Color? background,
- Color? selectedBackground,
- Color? selectedForeground,
- Border? border,
- Color? borderColor,
- int? width,
- int? maxHeight,
- double backdropOpacity = 0.6,
- Key? key,
Implementation
CommandPalette({
required this.child,
required this.items,
this.open = false,
this.title,
this.hint,
this.onDismiss,
this.onSelect,
this.background,
this.selectedBackground,
this.selectedForeground,
this.border,
this.borderColor,
this.width,
this.maxHeight,
this.backdropOpacity = 0.6,
super.key,
});