copyWith method

DiagStep copyWith({
  1. DiagStatus? status,
  2. String? value,
  3. String? detail,
  4. Duration? elapsed,
})

Implementation

DiagStep copyWith({
  DiagStatus? status,
  String? value,
  String? detail,
  Duration? elapsed,
}) {
  return DiagStep(
    id: id,
    label: label,
    status: status ?? this.status,
    value: value ?? this.value,
    detail: detail ?? this.detail,
    elapsed: elapsed ?? this.elapsed,
  );
}