copyWith method

CommandShortcutEvent copyWith({
  1. String? key,
  2. String getDescription()?,
  3. String? command,
  4. CommandShortcutEventHandler? handler,
})

Implementation

CommandShortcutEvent copyWith({
  String? key,
  String Function()? getDescription,
  String? command,
  CommandShortcutEventHandler? handler,
}) {
  return CommandShortcutEvent(
    key: key ?? this.key,
    getDescription: getDescription ?? _getDescription,
    command: command ?? this.command,
    handler: handler ?? this.handler,
  );
}