void remove(object)

Source

static void remove(dynamic object) =>
    ServiceRegistry.defaultInstance.unregister(object);