TrackInfo constructor

TrackInfo({
  1. String? trackId,
  2. TrackType? trackType,
  3. Iterable<VideoLayer>? layers,
  4. String? mid,
  5. bool? dtx,
  6. bool? stereo,
  7. bool? red,
})

Implementation

factory TrackInfo({
  $core.String? trackId,
  TrackType? trackType,
  $core.Iterable<VideoLayer>? layers,
  $core.String? mid,
  $core.bool? dtx,
  $core.bool? stereo,
  $core.bool? red,
}) {
  final _result = create();
  if (trackId != null) {
    _result.trackId = trackId;
  }
  if (trackType != null) {
    _result.trackType = trackType;
  }
  if (layers != null) {
    _result.layers.addAll(layers);
  }
  if (mid != null) {
    _result.mid = mid;
  }
  if (dtx != null) {
    _result.dtx = dtx;
  }
  if (stereo != null) {
    _result.stereo = stereo;
  }
  if (red != null) {
    _result.red = red;
  }
  return _result;
}