APIComponentCollection<T extends APIObject> class

A collection of reusable OpenAPI objects.

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

Properties

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

Methods

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.
register(String name, T component, { Type representation }) → void
Adds a component for name so that it can be referenced later. [...]
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

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