spawn<S> static method

Bind spawn<S>(
  1. InstanceBuilderCallback<S> builder, {
  2. String? tag,
  3. bool permanent = true,
})

Implementation

static Bind spawn<S>(InstanceBuilderCallback<S> builder,
    {String? tag, bool permanent = true}) {
  Get.spawn<S>(builder, tag: tag, permanent: permanent);
  return _FactoryBind<S>(
    tag: tag,
    global: false,
    autoRemove: permanent,
  );
}