copyWith method

PingSummary copyWith({
  1. int? transmitted,
  2. int? received,
  3. Duration? time,
  4. List<PingError>? errors,
})

Implementation

PingSummary copyWith({
  int? transmitted,
  int? received,
  Duration? time,
  List<PingError>? errors,
}) {
  return PingSummary(
    transmitted: transmitted ?? this.transmitted,
    received: received ?? this.received,
    time: time ?? this.time,
    errors: errors ?? this.errors,
  );
}