isAvailable static method

Future<bool> isAvailable()

Method to check whether pip mode is available for the current device

Refer PIP mode guide here

Implementation

static Future<bool> isAvailable() async {
  final bool? result =
      await PlatformService.invokeMethod(PlatformMethod.isPipAvailable);
  return result ?? false;
}