removeAll static method

void removeAll()

清空所有订阅与查询处理器。

只清空 Dart 侧注册表,不解除 native 层已安装的分发器(幂等)。

Implementation

static void removeAll() {
  final inst = _shared;
  if (inst == null) return;
  inst._eventHandlers.clear();
  inst._queryHandlers.clear();
}