CommandPaletteComponent<T> constructor

const CommandPaletteComponent<T>({
  1. required EditorCommandPalette<T> palette,
  2. String title = 'Command Palette',
  3. List<String> footer = const ['↑/↓ select enter run esc close'],
  4. int viewportSize = 7,
  5. int width = 72,
})

Implementation

const CommandPaletteComponent({
  required this.palette,
  this.title = 'Command Palette',
  this.footer = const ['↑/↓ select  enter run  esc close'],
  this.viewportSize = 7,
  this.width = 72,
}) : assert(viewportSize > 0),
     assert(width > 0);