isOnGoingCall method

  1. @override
Future<bool?> isOnGoingCall()
override

This method is used to check if the call is ongoing.

Implementation

@override
Future<bool?> isOnGoingCall() async {
  bool? res;
  try {
    res = await mirrorFlyCallMethodChannel.invokeMethod('isOnGoingCall');
    LogMessage.d('isOnGoingCall', '$res');
    return res;
  } on PlatformException catch (e) {
    LogMessage.d("Platform Exception =", " $e");
    rethrow;
  } on Exception catch (error) {
    LogMessage.d("Exception ", " $error");
    rethrow;
  }
}