VideoStream constructor

VideoStream({
  1. int? widthPixels,
  2. int? heightPixels,
  3. int? frameRateFps,
  4. int? aspectRatio,
  5. Iterable<VideoSegment>? videoSegments,
})

Implementation

factory VideoStream({
  $core.int? widthPixels,
  $core.int? heightPixels,
  $core.int? frameRateFps,
  $core.int? aspectRatio,
  $core.Iterable<VideoSegment>? videoSegments,
}) {
  final _result = create();
  if (widthPixels != null) {
    _result.widthPixels = widthPixels;
  }
  if (heightPixels != null) {
    _result.heightPixels = heightPixels;
  }
  if (frameRateFps != null) {
    _result.frameRateFps = frameRateFps;
  }
  if (aspectRatio != null) {
    _result.aspectRatio = aspectRatio;
  }
  if (videoSegments != null) {
    _result.videoSegments.addAll(videoSegments);
  }
  return _result;
}