APIComponentCollection<T extends APIObject> class Null safety

A collection of reusable OpenAPI objects.

Components of type T may be registered and referenced through this object.


hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited


getObject(String name) → T
Returns an object that references a component named name. [...]
getObjectWithType(Type type) → T
Returns an object that references a component registered for type. [...]
hasRegisteredType(Type type) bool
Whether or not type has been registered with register.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
register(String name, T component, {Type? representation}) → void
Adds a component for name so that it can be referenced later. [...]
toString() String
A string representation of this object. [...]


operator ==(Object other) bool
The equality operator. [...]
operator [](String name) → T
Returns a reference object in this collection with name. [...]