inject<T> method

T inject <T>(
  1. {Map<String, dynamic> parameters}
)

Implementation

T inject<T>({final Map<String, dynamic> parameters}) {
  _modules.forEach((module) {
    module.get = _dispatchInject;
    module.parameters = parameters ?? {};
  });
  final instance = _dispatchInject<T>();
  _modules.forEach((module) {
    module.get = (<T>() => null);
    module.parameters = {};
  });
  return instance;
}