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