put method

void put(
  1. String name,
  2. dynamic locator
)

Adds a new dependency into this resolver.

  • name the dependency's name.
  • locator the locator to find the dependency by.

Implementation

void put(String name, locator) {
  _dependencies[name] = locator;
}