closePictureInPictureWindow static method
Close the global PiP window on the platform side if it is active.
Implementation
static Future<void> closePictureInPictureWindow() async {
await engineStaticMethodChannel
.invokeMethod<void>('closePictureInPictureWindow');
}