FFYoutubePlayer constructor

FFYoutubePlayer({
  1. String? legacyUrl,
  2. FFDimensions? dimensions,
  3. bool? legacyAutoPlay,
  4. bool? legacyLooping,
  5. bool? legacyMute,
  6. bool? legacyShowControls,
  7. bool? showFullScreen,
  8. bool? legacyPauseOnNavigate,
  9. bool? legacyStrictRelatedVideos,
  10. FFStringValue? urlValue,
  11. FFBooleanValue? autoPlayValue,
  12. FFBooleanValue? loopingValue,
  13. FFBooleanValue? muteValue,
  14. FFBooleanValue? showControlsValue,
  15. FFBooleanValue? pauseOnNavigateValue,
  16. FFBooleanValue? strictRelatedVideosValue,
})

Implementation

factory FFYoutubePlayer({
  $core.String? legacyUrl,
  FFDimensions? dimensions,
  $core.bool? legacyAutoPlay,
  $core.bool? legacyLooping,
  $core.bool? legacyMute,
  $core.bool? legacyShowControls,
  $core.bool? showFullScreen,
  $core.bool? legacyPauseOnNavigate,
  $core.bool? legacyStrictRelatedVideos,
  FFStringValue? urlValue,
  FFBooleanValue? autoPlayValue,
  FFBooleanValue? loopingValue,
  FFBooleanValue? muteValue,
  FFBooleanValue? showControlsValue,
  FFBooleanValue? pauseOnNavigateValue,
  FFBooleanValue? strictRelatedVideosValue,
}) {
  final result = create();
  if (legacyUrl != null) result.legacyUrl = legacyUrl;
  if (dimensions != null) result.dimensions = dimensions;
  if (legacyAutoPlay != null) result.legacyAutoPlay = legacyAutoPlay;
  if (legacyLooping != null) result.legacyLooping = legacyLooping;
  if (legacyMute != null) result.legacyMute = legacyMute;
  if (legacyShowControls != null)
    result.legacyShowControls = legacyShowControls;
  if (showFullScreen != null) result.showFullScreen = showFullScreen;
  if (legacyPauseOnNavigate != null)
    result.legacyPauseOnNavigate = legacyPauseOnNavigate;
  if (legacyStrictRelatedVideos != null)
    result.legacyStrictRelatedVideos = legacyStrictRelatedVideos;
  if (urlValue != null) result.urlValue = urlValue;
  if (autoPlayValue != null) result.autoPlayValue = autoPlayValue;
  if (loopingValue != null) result.loopingValue = loopingValue;
  if (muteValue != null) result.muteValue = muteValue;
  if (showControlsValue != null) result.showControlsValue = showControlsValue;
  if (pauseOnNavigateValue != null)
    result.pauseOnNavigateValue = pauseOnNavigateValue;
  if (strictRelatedVideosValue != null)
    result.strictRelatedVideosValue = strictRelatedVideosValue;
  return result;
}