Provider<T> constructor

Provider<T>({
  1. required Create<T> create,
  2. Key? key,
  3. Dispose<T>? dispose,
  4. bool? lazy,
  5. TransitionBuilder? builder,
  6. Widget? child,
})

Provides the value create makes, handed to dispose, if given, when this widget leaves the tree.

Implementation

Provider({
  required Create<T> super.create,
  super.key,
  super.dispose,
  super.lazy,
  super.builder,
  super.child,
}) : super(debugCheckInvalidValueType: _checkValue<T>);