inject method

Hook inject(
  1. String injection
)
inherited

Inject dependencies

Implementation

Hook inject(String injection) {
  if (_injections.contains(injection)) {
    throw Exception("Injection already declared for $injection");
  }
  _injections.add(injection);
  _argsOrder.add(injection);
  return this;
}