bind<T> method
void
bind<T>(
- T fn()
Implementation
void bind<T>(T Function() fn) {
final service = fn();
_services[T] = service;
_defaults[T] = service;
}
void bind<T>(T Function() fn) {
final service = fn();
_services[T] = service;
_defaults[T] = service;
}