VdoPlayer constructor

const VdoPlayer({
  1. Key? key,
  2. required EmbedInfo embedInfo,
  3. required dynamic onPlayerCreated(
    1. VdoPlayerController controller
    ),
  4. double aspectRatio = 16 / 9,
  5. bool controls = true,
  6. bool enableSafeArea = true,
  7. dynamic onFullscreenChange(
    1. bool isFullscreen
    )?,
  8. dynamic onPictureInPictureModeChanged(
    1. bool isFullscreen
    )?,
  9. required dynamic onError(
    1. 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);