disablePictureInPicture method

Future<void>? disablePictureInPicture()

Disable Picture in Picture mode if it's enabled.

Implementation

Future<void>? disablePictureInPicture() {
  if (videoPlayerController == null) {
    throw StateError("The data source has not been initialized");
  }
  return videoPlayerController!.disablePictureInPicture();
}