destroy method Null safety

Future<void> destroy()

Destroys the RtcChannel instance.

Implementation

@override
Future<void> destroy() {
  _handler = null;
  _channels.remove(channelId);
  return _invokeMethod('destroy');
}