PrismCommandPalette constructor

const PrismCommandPalette({
  1. Key? key,
  2. required List<PrismCommand> commands,
  3. String placeholder = 'Type a command or search…',
  4. String emptyMessage = 'No matching commands',
  5. ValueChanged<PrismCommand>? onCommandSelected,
  6. String initialQuery = '',
  7. 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,
});