copyWith method
TerminalKeyboardEvent
copyWith({
- TerminalKey? key,
- bool? shift,
- bool? ctrl,
- bool? alt,
- TerminalState? state,
- bool? altBuffer,
- TerminalTargetPlatform? platform,
- TerminalKeyEventType? type,
- String? text,
Implementation
TerminalKeyboardEvent copyWith({
TerminalKey? key,
bool? shift,
bool? ctrl,
bool? alt,
TerminalState? state,
bool? altBuffer,
TerminalTargetPlatform? platform,
TerminalKeyEventType? type,
String? text,
}) {
return TerminalKeyboardEvent(
key: key ?? this.key,
shift: shift ?? this.shift,
ctrl: ctrl ?? this.ctrl,
alt: alt ?? this.alt,
state: state ?? this.state,
altBuffer: altBuffer ?? this.altBuffer,
platform: platform ?? this.platform,
type: type ?? this.type,
text: text ?? this.text,
);
}