callConversations static method
Future<OutgoingCall>
callConversations(
- CallConversationsRequest callConversationsRequest, [
- CallOptions? options
Make a call to the conversations platform, specified by callConversationsRequest
.
Additional call options
can be optionally specified.
Implementation
static Future<OutgoingCall> callConversations(CallConversationsRequest callConversationsRequest,
[CallOptions? options]) async {
if (_token == null) throw const NoTokenError();
String jsonStr = await instance._channel.invokeMethod('callConversations', {
"options": options != null ? jsonEncode(options.toJson()) : null,
});
_activeCall = OutgoingCall.fromJson(jsonDecode(jsonStr));
activeCall?.callEventListener = callConversationsRequest.callEventListener;
return activeCall as OutgoingCall;
}