getLatestEvent static method

Future<CallEvent?> getLatestEvent()

Implementation

static Future<CallEvent?> getLatestEvent() async {
  final event = await _channel.invokeMethod("getLatestEvent");
  if (event != null) {
    return Future.value(_receiveCallEvent(event));
  } else {
    return null;
  }
}