YoutubePlayerValue constructor
YoutubePlayerValue({
- bool isReady = false,
- bool isControlsVisible = false,
- bool hasPlayed = false,
- Duration position = const Duration(),
- double buffered = 0.0,
- bool isPlaying = false,
- bool isFullScreen = false,
- int volume = 100,
- PlayerState playerState = PlayerState.unknown,
- double playbackRate = PlaybackRate.normal,
- String? playbackQuality,
- int errorCode = 0,
- InAppWebViewController? webViewController,
- bool isDragging = false,
- YoutubeMetaData metaData = const YoutubeMetaData(),
The duration, current position, buffering state, error state and settings of a YoutubePlayerController.
Implementation
YoutubePlayerValue({
this.isReady = false,
this.isControlsVisible = false,
this.hasPlayed = false,
this.position = const Duration(),
this.buffered = 0.0,
this.isPlaying = false,
this.isFullScreen = false,
this.volume = 100,
this.playerState = PlayerState.unknown,
this.playbackRate = PlaybackRate.normal,
this.playbackQuality,
this.errorCode = 0,
this.webViewController,
this.isDragging = false,
this.metaData = const YoutubeMetaData(),
});