MediaTrackConstraints constructor

MediaTrackConstraints({
  1. List<MediaTrackConstraintSet>? advanced,
  2. Object? aspectRatio,
  3. Object? autoGainControl,
  4. double? channelCount,
  5. Object? deviceId,
  6. Object? displaySurface,
  7. Object? echoCancellation,
  8. Object? facingMode,
  9. Object? frameRate,
  10. Object? groupId,
  11. double? height,
  12. Object? noiseSuppression,
  13. double? sampleRate,
  14. double? sampleSize,
  15. double? width,
})

Implementation

factory MediaTrackConstraints({
  _i2.List<_i3.MediaTrackConstraintSet>? advanced,
  _i2.Object? aspectRatio,
  _i2.Object? autoGainControl,
  _i2.double? channelCount,
  _i2.Object? deviceId,
  _i2.Object? displaySurface,
  _i2.Object? echoCancellation,
  _i2.Object? facingMode,
  _i2.Object? frameRate,
  _i2.Object? groupId,
  _i2.double? height,
  _i2.Object? noiseSuppression,
  _i2.double? sampleRate,
  _i2.double? sampleSize,
  _i2.double? width,
}) =>
    MediaTrackConstraints._(
      advanced: advanced,
      aspectRatio: aspectRatio ?? _i6.undefined,
      autoGainControl: autoGainControl ?? _i6.undefined,
      channelCount: channelCount,
      deviceId: deviceId ?? _i6.undefined,
      displaySurface: displaySurface ?? _i6.undefined,
      echoCancellation: echoCancellation ?? _i6.undefined,
      facingMode: facingMode ?? _i6.undefined,
      frameRate: frameRate ?? _i6.undefined,
      groupId: groupId ?? _i6.undefined,
      height: height,
      noiseSuppression: noiseSuppression ?? _i6.undefined,
      sampleRate: sampleRate,
      sampleSize: sampleSize,
      width: width,
    );