register<T> method
Implementation
void register<T>(Spec spec, Factory<T> factory) =>
_registry.putIfAbsent(spec, () => {}).add(factory);
void register<T>(Spec spec, Factory<T> factory) =>
_registry.putIfAbsent(spec, () => {}).add(factory);