destroyAll static method

void destroyAll()

Destroys all RtcChannel instance.

Implementation

static void destroyAll() {
  _channels.forEach((key, value) async {
    await value.destroy();
  });
  _channels.clear();
}