AndroidIosWeb constructor
const
AndroidIosWeb({
- Key? key,
- required String initialVideoId,
- double aspectRatio = 16 / 9,
- bool? autoPlay = true,
- bool? mute = false,
- String? captionLanguage = 'en',
- bool? enableCaption = true,
- String? color = 'white',
- bool? showControls = true,
- bool? enableJavaScript = true,
- Duration? endAt,
- bool? showFullscreenButton = false,
- String? interfaceLanguage = 'en',
- bool? showVideoAnnotations = true,
- bool? loop = false,
- String? origin = 'https://www.youtube.com',
- List<
String> ? playlist = const [], - bool? playsInline = true,
- bool? strictRelatedVideos = false,
- Duration? startAt = Duration.zero,
- bool? desktopMode = false,
- bool? privacyEnhanced = false,
- bool? useHybridComposition = true,
- YoutubePlayerController? controller,
- Set<
Factory< ? gestureRecognizers,OneSequenceGestureRecognizer> >
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,
});