closePip method

void closePip(
  1. BuildContext context
)

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);
    }
  }
}