void addCustomObject(String name, Future loader)

Source

void addCustomObject(String name, Future loader) {
  _addResource("CustomObject", name, "", loader);
}