copyWith method

TargetReport copyWith({
  1. String? label,
  2. bool? success,
  3. BigInt? latencyMs,
  4. String? error,
  5. bool? isEssential,
})

Returns a copy of the report for a specific target.

Implementation

TargetReport copyWith({
  String? label,
  bool? success,
  BigInt? latencyMs,
  String? error,
  bool? isEssential,
}) {
  return TargetReport(
    label: label ?? this.label,
    success: success ?? this.success,
    latencyMs: latencyMs ?? this.latencyMs,
    error: error ?? this.error,
    isEssential: isEssential ?? this.isEssential,
  );
}