spawn<S> method

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

Creates and manages a background isolate dependency. The permanent flag determines whether the instance will persist permanently.

Implementation

void spawn<S>(InstanceBuilderCallback<S> builder,
    {String? tag, bool permanent = true}) {
  Get.spawn<S>(builder, tag: tag, permanent: permanent);
}