setPictureInPictureEnabled method
Implementation
@override
Future<void> setPictureInPictureEnabled({required bool enable}) async {
if (enable) {
return methodChannel.invokeMethod(
'enablePictureInPictureMode',
);
}
return methodChannel.invokeMethod(
'disablePictureInPictureMode',
);
}