copyWith method
CommandShortcutEvent
copyWith({
- String? key,
- String getDescription()?,
- String? command,
- 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,
);
}