closePip method
Implementation
void closePip(BuildContext context) {
if (_pipManager.isInPipMode.value == true) {
if (UniversalPlatform.isDesktop) {
if (!_desktopPipBk!.isFullScreen) {
// ignore: use_build_context_synchronously
Navigator.of(context).pop();
}
_closePipDesktop(context);
}
}
}