withArg<T, A> static method
SaveReactiveProviderFamily<T, A>
withArg<T, A>(
- FutureOr<
T> build(- SaveObserver $,
- A arg
- bool autoDispose = true,
- void onDispose(
- A arg,
- 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,
);