copyWith method

RoadEventActionInfo copyWith({
  1. RoadEventActionState? state,
  2. Optional<int?>? count,
})

Implementation

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