add<T> method

  1. @override
void add<T>(
  1. T instance
)
override

Adds an instance to meta, which can be retrieved later.

The key for the instance is the type of the instance.

Implementation

@override
void add<T>(T instance) {
  (_registered[T] ??= []).add(instance);
}