add<T> method
Register a factory instance. A new instance will be generated whenever requested.
injector.add(MyController.new);
When [key] is provided this instance only can be found by key
Implementation
@override
void add<T>(Function constructor, {BindConfig<T>? config, String? key}) {
_add<T>(constructor, config: config, key: key);
}