copyWith method

InfospectNetworkCall copyWith({
  1. int? id,
  2. DateTime? createdTime,
  3. String? client,
  4. bool? loading,
  5. bool? secure,
  6. String? method,
  7. String? endpoint,
  8. String? server,
  9. String? uri,
  10. int? duration,
  11. InfospectNetworkRequest? request,
  12. InfospectNetworkResponse? response,
  13. InfospectNetworkError? error,
  14. bool? hadRequestBreakpoint,
  15. bool? hadResponseBreakpoint,
  16. bool? requestEditedAtBreakpoint,
  17. bool? responseEditedAtBreakpoint,
  18. InfospectBreakpointEdit? requestBreakpointEdit,
  19. InfospectBreakpointEdit? responseBreakpointEdit,
})

Implementation

InfospectNetworkCall copyWith({
  int? id,
  DateTime? createdTime,
  String? client,
  bool? loading,
  bool? secure,
  String? method,
  String? endpoint,
  String? server,
  String? uri,
  int? duration,
  InfospectNetworkRequest? request,
  InfospectNetworkResponse? response,
  InfospectNetworkError? error,
  bool? hadRequestBreakpoint,
  bool? hadResponseBreakpoint,
  bool? requestEditedAtBreakpoint,
  bool? responseEditedAtBreakpoint,
  InfospectBreakpointEdit? requestBreakpointEdit,
  InfospectBreakpointEdit? responseBreakpointEdit,
}) {
  return InfospectNetworkCall(
    id ?? this.id,
    time: createdTime ?? this.createdTime,
    client: client ?? this.client,
    loading: loading ?? this.loading,
    secure: secure ?? this.secure,
    method: method ?? this.method,
    endpoint: endpoint ?? this.endpoint,
    server: server ?? this.server,
    uri: uri ?? this.uri,
    duration: duration ?? this.duration,
    request: request ?? this.request,
    response: response ?? this.response,
    error: error ?? this.error,
    hadRequestBreakpoint: hadRequestBreakpoint ?? this.hadRequestBreakpoint,
    hadResponseBreakpoint: hadResponseBreakpoint ?? this.hadResponseBreakpoint,
    requestEditedAtBreakpoint:
        requestEditedAtBreakpoint ?? this.requestEditedAtBreakpoint,
    responseEditedAtBreakpoint:
        responseEditedAtBreakpoint ?? this.responseEditedAtBreakpoint,
    requestBreakpointEdit:
        requestBreakpointEdit ?? this.requestBreakpointEdit,
    responseBreakpointEdit:
        responseBreakpointEdit ?? this.responseBreakpointEdit,
  );
}