destroyAll method Null safety

void destroyAll()

销毁所有的 RtcChannel 对象。

Implementation

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