add<T> method
void
add<T>(
- T instance
Adds an instance to meta, which can be retrieved later.
The key for the instance is the type of the instance.
Implementation
void add<T>(T instance) {
(_registered[T] ??= []).add(instance);
}