add<T> abstract method

void add<T>(
  1. Function constructor, {
  2. String? key,
})

Adds a dependency that will be created new each time it's requested.

Implementation

void add<T>(Function constructor, {String? key});