ConsumerBuilder typedef Null safety

Widget ConsumerBuilder(
  1. BuildContext context,
  2. ScopedReader watch,
  3. Widget? child
)

A function that can also listen to providers

See also Consumer

Implementation

typedef ConsumerBuilder = Widget Function(
  BuildContext context,
  ScopedReader watch,
  Widget? child,
);