hangup method Null safety
override
Hangup the call
sends request with payload as:
{ "request" : "hangup" }
Since it is asynchronous request result can only be extracted from event messages
Implementation
Future<void> hangup() async {
await super.hangup();
await this.send(data: {"request": "hangup"});
dispose();
}