unregisterAll method

void unregisterAll()

Moves all registrations to the free list.

Implementation

void unregisterAll() {
  var node = callbacks;
  callbacks = null;

  while (node != null) {
    var next = node.next;
    _recycle(node);
    node = next;
  }
}