hangup method
Disconnects the call.
Optional headers
- Optional SIP headers
Implementation
Future<void> hangup([Map<String, String>? headers]) async {
try {
await _channel.invokeMethod<void>('Call.hangupCall',
<String, dynamic>{'callId': _callId, 'headers': headers});
} on PlatformException catch (e) {
throw VIException(e.code, e.message);
}
}