VdoPlayer constructor
const
VdoPlayer({
- Key? key,
- required EmbedInfo embedInfo,
- required dynamic onPlayerCreated(
- VdoPlayerController controller
- double aspectRatio = 16 / 9,
- bool controls = true,
- bool enableSafeArea = true,
- dynamic onFullscreenChange(
- bool isFullscreen
- dynamic onPictureInPictureModeChanged(
- bool isFullscreen
- required dynamic onError(
- VdoError vdoError
Implementation
const VdoPlayer(
{Key? key,
required this.embedInfo,
required this.onPlayerCreated,
this.aspectRatio = 16 / 9,
this.controls = true,
this.enableSafeArea = true,
this.onFullscreenChange,
this.onPictureInPictureModeChanged,
required this.onError})
: super(key: key);