void remove(object)

Removes an object from the registry.

Source

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