copyWith method

TerminalKeyboardEvent copyWith({
  1. TerminalKey? key,
  2. bool? shift,
  3. bool? ctrl,
  4. bool? alt,
  5. bool? superKey,
  6. bool? capsLock,
  7. bool? numLock,
  8. TerminalState? state,
  9. bool? altBuffer,
  10. TerminalTargetPlatform? platform,
  11. TerminalKeyEventType? type,
  12. String? text,
})

Implementation

TerminalKeyboardEvent copyWith({
  TerminalKey? key,
  bool? shift,
  bool? ctrl,
  bool? alt,
  bool? superKey,
  bool? capsLock,
  bool? numLock,
  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,
    superKey: superKey ?? this.superKey,
    capsLock: capsLock ?? this.capsLock,
    numLock: numLock ?? this.numLock,
    state: state ?? this.state,
    altBuffer: altBuffer ?? this.altBuffer,
    platform: platform ?? this.platform,
    type: type ?? this.type,
    text: text ?? this.text,
  );
}