arg<T, A> static method

InitBuilder<T> arg<T, A>({
  1. Key? key,
  2. required ValueBuilderFn<T> builder,
  3. required A arg,
  4. required T getter(
    1. A
    ),
  5. ValueSetter<T>? disposer,
})

Constructor for one argument getters.

Implementation

static InitBuilder<T> arg<T, A>({
  Key? key,
  required ValueBuilderFn<T> builder,
  required A arg,
  required T Function(A) getter,
  ValueSetter<T>? disposer,
}) =>
    _ArgInitBuilder<T, A>(
      key: key,
      builder: builder,
      arg: arg,
      getter: getter,
      disposer: disposer,
    );