lazyPut<S> method

void lazyPut<S>(
  1. InstanceBuilderCallback<S> builder, {
  2. String? tag,
  3. bool fenix = false,
})

Registers a lazy singleton dependency. fenix: true on it which means it's able to be reconstructed in case it got disposed of before.

Implementation

void lazyPut<S>(
  InstanceBuilderCallback<S> builder, {
  String? tag,
  bool fenix = false,
}) {
  Get.lazyPut<S>(builder, tag: tag, fenix: fenix);
}