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,
  8. bool? muted,
})

Implementation

factory TrackInfo({
  $core.String? trackId,
  TrackType? trackType,
  $core.Iterable<VideoLayer>? layers,
  $core.String? mid,
  $core.bool? dtx,
  $core.bool? stereo,
  $core.bool? red,
  $core.bool? muted,
}) {
  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;
  }
  if (muted != null) {
    $result.muted = muted;
  }
  return $result;
}