spawn<S> static method

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

Implementation

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