LogicRef<T> constructor

LogicRef<T>(
  1. InstanceFactory<T> create, {
  2. String? name,
})

Creates a reference to a business logic component.

The create parameter must not be null and it's used to generate a logic component instance.

A name can be provided to this reference for debugging purposes.

Implementation

LogicRef(
  this.create, {
  String? name,
}) : key = BinderKey(name ?? 'LogicRef<$T>');