VideoFeedSettings constructor

VideoFeedSettings({
  1. double? zoom,
  2. double? pan,
  3. double? tilt,
  4. double? focus,
  5. bool? autofocus,
})

Constructor the video feed settings, initializes any fields that are provided and in a valid range

Implementation

VideoFeedSettings({
  double? zoom,
  double? pan,
  double? tilt,
  double? focus,
  bool? autofocus,
}) {
  if (zoom != null) _zoom = zoom.clamp(100, 800);
  if (pan != null) _pan = pan.clamp(-180, 180);
  if (tilt != null) _tilt = tilt.clamp(-180, 180);
  if (focus != null) _focus = focus.clamp(0, 255);
  if (autofocus != null) _autofocus = autofocus;
}