copyWith method
Implementation
TrafficControlState copyWith({
TrafficControlStatus? status,
Optional<int?>? score
}) {
return TrafficControlState(
status: status ?? this.status,
score: score != null ? score.value : this.score
);
}
TrafficControlState copyWith({
TrafficControlStatus? status,
Optional<int?>? score
}) {
return TrafficControlState(
status: status ?? this.status,
score: score != null ? score.value : this.score
);
}