provider method

Widget provider(
  1. {Key? key,
  2. ErrorBuilder<T>? catchError,
  3. UpdateShouldNotify<T>? updateShouldNotify,
  4. bool? lazy,
  5. TransitionBuilder? builder,
  6. 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,
  );
}