registerType<T> method

void registerType<T>(
  1. T instance
)

Implementation

void registerType<T>(T instance) {
  instances[T] = instance;
}