lazyPut<S> static method

Bind lazyPut<S>(
  1. InstanceBuilderCallback<S> builder, {
  2. String? tag,
  3. bool fenix = true,
  4. VoidCallback? onClose,
})

Implementation

static Bind lazyPut<S>(
  InstanceBuilderCallback<S> builder, {
  String? tag,
  bool fenix = true,
  // VoidCallback? onInit,
  VoidCallback? onClose,
}) {
  Get.lazyPut<S>(builder, tag: tag, fenix: fenix);
  return _FactoryBind<S>(
    tag: tag,
    // initState: (_) {
    //   onInit?.call();
    // },
    dispose: (_) {
      onClose?.call();
    },
  );
}