call property
- @Deprecated('telnyxClient.call is deprecated, use telnyxClient.invite() or telnyxClient.accept()')
The current instance of Call associated with this client.
This is deprecated. Use newInvite to create a new call or acceptCall to answer an incoming one. For existing calls, retrieve them from the calls map using their call ID.
Implementation
@Deprecated(
'telnyxClient.call is deprecated, use telnyxClient.invite() or telnyxClient.accept()',
)
/// The current instance of [Call] associated with this client.
///
/// This is deprecated. Use [newInvite] to create a new call or
/// [acceptCall] to answer an incoming one. For existing calls, retrieve them
/// from the [calls] map using their call ID.
Call get call {
// If _call is null, initialize it with the default value.
_call ??= _createCall();
return _call!;
}