UseInstance<T extends Object>.create constructor

UseInstance<T extends Object>.create(
  1. InstanceBuilder<T> builder, {
  2. String? id,
  3. 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();
}