ConsumerBuilder typedef Null safety

ConsumerBuilder = Widget Function(BuildContext context, WidgetRef ref, Widget? child)

A function that can also listen to providers

See also Consumer

Implementation

typedef ConsumerBuilder = Widget Function(
  BuildContext context,
  WidgetRef ref,
  Widget? child,
);