copyWith method

RoadCameraInfo copyWith({
  1. CameraPurposeEnumSet? purposes,
  2. Optional<int?>? speedLimit,
})

Implementation

RoadCameraInfo copyWith({
  CameraPurposeEnumSet? purposes,
  Optional<int?>? speedLimit
}) {
  return RoadCameraInfo(
    purposes: purposes ?? this.purposes,
    speedLimit: speedLimit != null ? speedLimit.value : this.speedLimit
  );
}