copyWith method

ProgramOptions copyWith({
  1. bool? altScreen,
  2. bool? mouse,
  3. MouseMode? mouseMode,
  4. int? fps,
  5. bool? frameTick,
  6. bool? hideCursor,
  7. bool? bracketedPaste,
  8. Duration? inputTimeout,
  9. bool? catchPanics,
  10. int? maxStackFrames,
  11. MessageFilter? filter,
  12. ProgramInterceptor? interceptor,
  13. ProgramReplay? replay,
  14. bool? blockInputWhileReplay,
  15. bool? signalHandlers,
  16. bool? sendInterrupt,
  17. String? startupTitle,
  18. Stream<List<int>>? input,
  19. void output(
    1. String
    )?,
  20. bool? disableRenderer,
  21. bool? ansiCompress,
  22. bool? useUltravioletRenderer,
  23. bool? useUltravioletInputDecoder,
  24. Future<void>? cancelSignal,
  25. List<String>? environment,
  26. bool? inputTTY,
  27. ({bool useBackspace, bool useTabs})? movementCapsOverride,
  28. bool? shutdownSharedStdinOnExit,
  29. Duration? metricsInterval,
})

Creates a copy with the given fields replaced.

Implementation

ProgramOptions copyWith({
  bool? altScreen,
  bool? mouse,
  MouseMode? mouseMode,
  int? fps,
  bool? frameTick,
  bool? hideCursor,
  bool? bracketedPaste,
  Duration? inputTimeout,
  bool? catchPanics,
  int? maxStackFrames,
  MessageFilter? filter,
  ProgramInterceptor? interceptor,
  ProgramReplay? replay,
  bool? blockInputWhileReplay,
  bool? signalHandlers,
  bool? sendInterrupt,
  String? startupTitle,
  Stream<List<int>>? input,
  void Function(String)? output,
  bool? disableRenderer,
  bool? ansiCompress,
  bool? useUltravioletRenderer,
  bool? useUltravioletInputDecoder,
  Future<void>? cancelSignal,
  List<String>? environment,
  bool? inputTTY,
  ({bool useTabs, bool useBackspace})? movementCapsOverride,
  bool? shutdownSharedStdinOnExit,
  Duration? metricsInterval,
}) {
  return ProgramOptions(
    altScreen: altScreen ?? this.altScreen,
    mouse: mouse ?? this.mouse,
    mouseMode: mouseMode ?? this.mouseMode,
    fps: fps ?? this.fps,
    frameTick: frameTick ?? this.frameTick,
    hideCursor: hideCursor ?? this.hideCursor,
    bracketedPaste: bracketedPaste ?? this.bracketedPaste,
    inputTimeout: inputTimeout ?? this.inputTimeout,
    catchPanics: catchPanics ?? this.catchPanics,
    maxStackFrames: maxStackFrames ?? this.maxStackFrames,
    filter: filter ?? this.filter,
    interceptor: interceptor ?? this.interceptor,
    replay: replay ?? this.replay,
    blockInputWhileReplay:
        blockInputWhileReplay ?? this.blockInputWhileReplay,
    signalHandlers: signalHandlers ?? this.signalHandlers,
    sendInterrupt: sendInterrupt ?? this.sendInterrupt,
    startupTitle: startupTitle ?? this.startupTitle,
    input: input ?? this.input,
    output: output ?? this.output,
    disableRenderer: disableRenderer ?? this.disableRenderer,
    ansiCompress: ansiCompress ?? this.ansiCompress,
    useUltravioletRenderer:
        useUltravioletRenderer ?? this.useUltravioletRenderer,
    useUltravioletInputDecoder:
        useUltravioletInputDecoder ?? this.useUltravioletInputDecoder,
    cancelSignal: cancelSignal ?? this.cancelSignal,
    environment: environment ?? this.environment,
    inputTTY: inputTTY ?? this.inputTTY,
    movementCapsOverride: movementCapsOverride ?? this.movementCapsOverride,
    shutdownSharedStdinOnExit:
        shutdownSharedStdinOnExit ?? this.shutdownSharedStdinOnExit,
    metricsInterval: metricsInterval ?? this.metricsInterval,
  );
}