spawn<S> method

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

Creates and manages a background isolate dependency.

Implementation

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