getActiveCall static method

Future<Call?> getActiveCall()

Implementation

static Future<Call?> getActiveCall() async {
  try {
    final result = await channel.invokeMethod('getActiveCall', {});
    if (result != null) {
      return Call.fromMap(result);
    } else {
      return null;
    }
  } on PlatformException {
    return null;
  } catch (e) {
    return null;
  }
}