UseDependency<T extends Object>.builder constructor

UseDependency<T extends Object>.builder(
  1. InstanceBuilder<T> builder, [
  2. String? id
])

Register a builder function of the T dependency with/without id as DependencyMode.builder and creates the instance if it isn't already registered, else gets its instance only.

Implementation

factory UseDependency.builder(InstanceBuilder<T> builder, [String? id]) =>
    UseDependency.create(
      builder,
      id: id,
      mode: DependencyMode.builder,
    );