isActive static method
Method to check whether pip mode is active currently
Refer PIP mode guide here
Implementation
static Future<bool> isActive() async {
if (_isPIPSetupDone) {
final bool? result =
await PlatformService.invokeMethod(PlatformMethod.isPipActive);
return result ?? false;
}
return false;
}