lazyPut<S> static method

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

Implementation

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