getCallDirection method

  1. @override
Future<String> getCallDirection()
override

This method is used to get the call direction.

Implementation

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