CommandShortcutEvent constructor

CommandShortcutEvent({
  1. required String key,
  2. required String command,
  3. required CommandShortcutEventHandler handler,
  4. required String getDescription()?,
  5. String? windowsCommand,
  6. String? macOSCommand,
  7. String? linuxCommand,
})

Implementation

CommandShortcutEvent({
  required this.key,
  required this.command,
  required this.handler,
  required String Function()? getDescription,
  String? windowsCommand,
  String? macOSCommand,
  String? linuxCommand,
}) : _getDescription = getDescription {
  updateCommand(
    command: command,
    windowsCommand: windowsCommand,
    macOSCommand: macOSCommand,
    linuxCommand: linuxCommand,
  );
}