PlayerView constructor
Creates a PlayerView widget.
The controller parameter is required and is used to manage video
playback.
The awakeScreenWhilePlaying parameter is optional and defaults to
false. It is used to determine whether to keep the screen on while the
video is playing. If this parameter is set to true, the screen will be
kept on while the video is playing. If this parameter is set to false,
the screen will be allowed to turn off while the video is playing.
Implementation
const PlayerView({
super.key,
required this.controller,
this.awakeScreenWhilePlaying = false,
});