CameraDetails constructor

CameraDetails({
  1. CameraName? name,
  2. int? resolutionWidth,
  3. int? resolutionHeight,
  4. int? quality,
  5. int? fps,
  6. CameraStatus? status,
  7. bool? autofocus,
  8. int? zoom,
  9. int? pan,
  10. int? tilt,
  11. int? focus,
})

Implementation

factory CameraDetails({
  CameraName? name,
  $core.int? resolutionWidth,
  $core.int? resolutionHeight,
  $core.int? quality,
  $core.int? fps,
  CameraStatus? status,
  $core.bool? autofocus,
  $core.int? zoom,
  $core.int? pan,
  $core.int? tilt,
  $core.int? focus,
}) {
  final $result = create();
  if (name != null) {
    $result.name = name;
  }
  if (resolutionWidth != null) {
    $result.resolutionWidth = resolutionWidth;
  }
  if (resolutionHeight != null) {
    $result.resolutionHeight = resolutionHeight;
  }
  if (quality != null) {
    $result.quality = quality;
  }
  if (fps != null) {
    $result.fps = fps;
  }
  if (status != null) {
    $result.status = status;
  }
  if (autofocus != null) {
    $result.autofocus = autofocus;
  }
  if (zoom != null) {
    $result.zoom = zoom;
  }
  if (pan != null) {
    $result.pan = pan;
  }
  if (tilt != null) {
    $result.tilt = tilt;
  }
  if (focus != null) {
    $result.focus = focus;
  }
  return $result;
}