create<S> static method

Bind create<S>(
  1. InstanceCreateBuilderCallback<S> builder, {
  2. String? tag,
  3. bool permanent = true,
})

Creates a binding and puts the specified dependency into the GetX service locator.

Returns the binding created.

Implementation

static Bind<dynamic> create<S>(
  InstanceCreateBuilderCallback<S> builder, {
  String? tag,
  bool permanent = true,
}) =>
    _FactoryBind<S>(
      create: builder,
      tag: tag,
      global: false,
    );