UseInstance<T extends Object>.lazyFactory constructor

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

Register a builder function for creating a new instance of T with an id optional as InstanceManageMode.factory.

Implementation

factory UseInstance.lazyFactory(InstanceBuilder<T> builder, [String? id]) =>
    UseInstance.register(
      builder,
      mode: InstanceManageMode.factory,
      id: id,
    );