ProxyProvider0<R> constructor
ProxyProvider0<R> ({
- Key? key,
- Create<
R> ? create, - required R update(
- BuildContext context,
- R? value
- UpdateShouldNotify<
R> ? updateShouldNotify, - Dispose<
R> ? dispose, - bool? lazy,
- TransitionBuilder? builder,
- Widget? child,
Initializes key
for subclasses.
Implementation
ProxyProvider0({
Key? key,
Create<R>? create,
required R Function(BuildContext context, R? value) update,
UpdateShouldNotify<R>? updateShouldNotify,
Dispose<R>? dispose,
bool? lazy,
TransitionBuilder? builder,
Widget? child,
}) : super(
key: key,
lazy: lazy,
builder: builder,
create: create,
update: update,
dispose: dispose,
updateShouldNotify: updateShouldNotify,
debugCheckInvalidValueType: kReleaseMode
? null
: (R value) =>
Provider.debugCheckInvalidValueType?.call<R>(value),
child: child,
);