create static method

CameraConfigMsg create({
  1. String? selectedCamera,
  2. Map<String, String>? cameraNames,
  3. CameraTimingMsg? shutterTiming,
})

Implementation

static CameraConfigMsg create({
  String? selectedCamera,
  Map<String, String>? cameraNames,
  CameraTimingMsg? shutterTiming,
}) {
  final $o = CameraConfigMsg();
  if (selectedCamera != null) {
    $o.selectedCamera = selectedCamera;
  }
  if (cameraNames != null) {
    $o.cameraNames.addAll(cameraNames);
  }
  if (shutterTiming != null) {
    $o.shutterTiming = shutterTiming;
  }
  return $o;
}