PrismCommand constructor

const PrismCommand({
  1. required String label,
  2. required VoidCallback onSelect,
  3. String? id,
  4. String? subtitle,
  5. IconData? icon,
  6. String group = 'General',
  7. String? shortcut,
  8. List<String> keywords = const [],
  9. bool enabled = true,
  10. Widget? trailing,
})

Creates a command.

Implementation

const PrismCommand({
  required this.label,
  required this.onSelect,
  this.id,
  this.subtitle,
  this.icon,
  this.group = 'General',
  this.shortcut,
  this.keywords = const [],
  this.enabled = true,
  this.trailing,
});