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,
})

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,
}) {
  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,
  );
}