copyWith method

TrafficScore copyWith({
  1. TrafficScoreState? state,
  2. Optional<int?>? value,
})

Implementation

TrafficScore copyWith({
  TrafficScoreState? state,
  Optional<int?>? value
}) {
  return TrafficScore(
    state: state ?? this.state,
    value: value != null ? value.value : this.value
  );
}