copyWith method

BriefRoadEvent copyWith({
  1. int? id,
  2. RoadEventType? eventType,
  3. LaneEnumSet? lanes,
})

Implementation

BriefRoadEvent copyWith({
  int? id,
  RoadEventType? eventType,
  LaneEnumSet? lanes
}) {
  return BriefRoadEvent(
    id: id ?? this.id,
    eventType: eventType ?? this.eventType,
    lanes: lanes ?? this.lanes
  );
}