getCallDuration method

Future<int?> getCallDuration()

Returns the call duration in milliseconds.

Implementation

Future<int?> getCallDuration() async {
  try {
    return await _channel
        .invokeMethod('Call.getCallDuration', <String, String>{
      'callId': callId,
    });
  } on PlatformException catch (e) {
    throw VIException(e.code, e.message);
  }
}