copyWith method

PingData copyWith({
  1. PingResponse? response,
  2. PingSummary? summary,
  3. PingError? error,
})

Implementation

PingData copyWith({
  PingResponse? response,
  PingSummary? summary,
  PingError? error,
}) {
  return PingData(
    response: response ?? this.response,
    summary: summary ?? this.summary,
    error: error ?? this.error,
  );
}