AndroidIosWeb constructor

const AndroidIosWeb({
  1. Key? key,
  2. required String initialVideoId,
  3. double aspectRatio = 16 / 9,
  4. bool? autoPlay = true,
  5. bool? mute = false,
  6. String? captionLanguage = 'en',
  7. bool? enableCaption = true,
  8. String? color = 'white',
  9. bool? showControls = true,
  10. bool? enableJavaScript = true,
  11. Duration? endAt,
  12. bool? showFullscreenButton = false,
  13. String? interfaceLanguage = 'en',
  14. bool? showVideoAnnotations = true,
  15. bool? loop = false,
  16. String? origin = 'https://www.youtube.com',
  17. List<String>? playlist = const [],
  18. bool? playsInline = true,
  19. bool? strictRelatedVideos = false,
  20. Duration? startAt = Duration.zero,
  21. bool? desktopMode = false,
  22. bool? privacyEnhanced = false,
  23. bool? useHybridComposition = true,
  24. YoutubePlayerController? controller,
  25. Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers,
})

Implementation

const AndroidIosWeb({
  super.key,
  required this.initialVideoId,
  this.aspectRatio = 16 / 9,
  this.autoPlay = true,
  this.mute = false,
  this.captionLanguage = 'en',
  this.enableCaption = true,
  this.color = 'white',
  this.showControls = true,
  this.enableJavaScript = true,
  this.endAt,
  this.showFullscreenButton = false,
  this.interfaceLanguage = 'en',
  this.showVideoAnnotations = true,
  this.loop = false,
  this.origin = 'https://www.youtube.com',
  this.playlist = const [],
  this.playsInline = true,
  this.strictRelatedVideos = false,
  this.startAt = Duration.zero,
  this.desktopMode = false,
  this.privacyEnhanced = false,
  this.useHybridComposition = true,
  this.controller,
  this.gestureRecognizers,
});