void unregister(object)

Removes an object from the registry.

Source

void unregister(dynamic object) {
  _registrations.removeWhere((r) => identical(r.object, object));
}