copyWith method

TrafficModel copyWith({
  1. TrafficControlStatus? status,
  2. int? score()?,
})

Implementation

TrafficModel copyWith({
  sdk.TrafficControlStatus? status,
  int? Function()? score,
}) {
  return TrafficModel(
    status: status ?? this.status,
    score: score != null ? score() : this.score,
  );
}