clear static method

void clear()

Clear all connections and events

Implementation

static void clear() {
  // Defer update to avoid setState during build phase
  Future.microtask(() {
    _connections.value = {};
    _allEvents.value = [];
  });
}