copyWith method

TracingState copyWith({
  1. List<InputEvent>? events,
  2. Map<int, InputEvent>? runningActions,
  3. Map<String, ActionInfo>? historicalActions,
  4. bool? hasTracing,
  5. bool? hasFinishedEvents,
  6. int? clientDelay,
})

Implementation

TracingState copyWith({
  List<InputEvent>? events,
  Map<int, InputEvent>? runningActions,
  Map<String, ActionInfo>? historicalActions,
  bool? hasTracing,
  bool? hasFinishedEvents,
  int? clientDelay,
}) {
  return TracingState(
    events: events ?? this.events,
    runningActions: runningActions ?? this.runningActions,
    historicalActions: historicalActions ?? this.historicalActions,
    hasTracing: hasTracing ?? this.hasTracing,
    hasFinishedEvents: hasFinishedEvents ?? this.hasFinishedEvents,
    clientDelay: clientDelay ?? this.clientDelay,
  );
}