provider method
- {Key? key,
- ErrorBuilder<
T> ? catchError, - UpdateShouldNotify<
T> ? updateShouldNotify, - bool? lazy,
- TransitionBuilder? builder,
- Widget? child}
Implementation
Widget provider({
Key? key,
ErrorBuilder<T>? catchError,
UpdateShouldNotify<T>? updateShouldNotify,
bool? lazy,
TransitionBuilder? builder,
Widget? child,
}) {
return StreamProvider<T>.value(
key: key,
value: this,
initialData: value,
updateShouldNotify: updateShouldNotify,
lazy: lazy,
builder: builder,
child: child,
);
}