UseInstance<T extends Object>.create constructor
UseInstance<T extends Object>.create (
- InstanceBuilder<
T> builder, { - String? id,
- InstanceManageMode mode = InstanceManageMode.builder,
Registers, creates and/or gets the instance of T
with an id optional.
Implementation
UseInstance.create(
InstanceBuilder<T> builder, {
this.id,
InstanceManageMode mode = InstanceManageMode.builder,
}) {
_instance = Reactter.create(
builder,
id: id,
ref: this,
mode: mode,
);
_listen();
}