copyWith method

TerminalKeyboardEvent copyWith({
  1. TerminalKey? key,
  2. bool? shift,
  3. bool? ctrl,
  4. bool? alt,
  5. TerminalState? state,
  6. bool? altBuffer,
  7. TerminalTargetPlatform? platform,
  8. TerminalKeyEventType? type,
  9. 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,
  );
}