CommandDescriptor constructor

CommandDescriptor({
  1. required String name,
  2. required Function function,
  3. String? i18n,
  4. String? label,
  5. IconData? icon,
  6. String? shortcut,
  7. String? tooltip,
  8. LockType lock = LockType.command,
})

Implementation

CommandDescriptor({required this.name, required this.function, this.i18n, this.label, this.icon, this.shortcut, this.tooltip, this.lock = LockType.command});