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.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

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.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
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.
inherited

Operators

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