CommandPaletteOverlay constructor

const CommandPaletteOverlay({
  1. required CommandPaletteController controller,
  2. required bool isOpen,
  3. String title = 'Command Palette',
  4. List<String> footer = const ['↑/↓ select enter run esc close'],
  5. int viewportSize = 7,
  6. int width = 72,
  7. String emptyLabel = 'No matching commands',
})

Implementation

const CommandPaletteOverlay({
  required this.controller,
  required this.isOpen,
  this.title = 'Command Palette',
  this.footer = const ['↑/↓ select  enter run  esc close'],
  this.viewportSize = 7,
  this.width = 72,
  this.emptyLabel = 'No matching commands',
}) : assert(viewportSize > 0),
     assert(width > 0);