withArg<T, A> static method

SaveReactiveProviderFamily<T, A> withArg<T, A>(
  1. FutureOr<T> build(
    1. SaveObserver $,
    2. A arg
    ), {
  2. bool autoDispose = true,
  3. void onDispose(
    1. A arg,
    2. T last
    )?,
})

Syntatic sugar for SaveReactiveProviderFamily.new

Implementation

static SaveReactiveProviderFamily<T, A> withArg<T, A>(
  final FutureOr<T> Function(SaveObserver $, A arg) build, {
  final bool autoDispose = true,
  final void Function(A arg, T last)? onDispose,
}) =>
    SaveReactiveProviderFamily<T, A>(
      build,
      autoDispose: autoDispose,
      onDispose: onDispose,
    );