PrismCommandPalette constructor
const
PrismCommandPalette({
- Key? key,
- required List<
PrismCommand> commands, - String placeholder = 'Type a command or search…',
- String emptyMessage = 'No matching commands',
- ValueChanged<
PrismCommand> ? onCommandSelected, - String initialQuery = '',
- int maxResults = 50,
Creates a command palette. Prefer show to present it as a route.
Implementation
const PrismCommandPalette({
super.key,
required this.commands,
this.placeholder = 'Type a command or search…',
this.emptyMessage = 'No matching commands',
this.onCommandSelected,
this.initialQuery = '',
this.maxResults = 50,
});