UncontrolledProviderScope constructor

const UncontrolledProviderScope({
  1. Key? key,
  2. required ProviderContainer container,
  3. required Widget child,
})

Expose a ProviderContainer to the widget tree.

This is what makes useProvider/Consumer/context.read work.

Implementation

const UncontrolledProviderScope({
  Key? key,
  required this.container,
  required Widget child,
}) : super(key: key, child: child);