destroyAll static method

void destroyAll()

Destroys all RtcChannel instance.

Implementation

static void destroyAll() {
  _channels.forEach((key, value) async {
    value._handler = null;
    await value._invokeMethod('destroy');
  });
  _channels.clear();
}