Provider<T>.value constructor

Provider<T>.value({
  1. required T value,
  2. Key? key,
  3. UpdateShouldNotify<T>? updateShouldNotify,
  4. TransitionBuilder? builder,
  5. Widget? child,
})

Provides value, made and disposed of elsewhere.

Implementation

Provider.value({
  required super.value,
  super.key,
  super.updateShouldNotify,
  super.builder,
  super.child,
}) : assert(_checkValue<T>(value), 'checked by debugCheckInvalidValueType'),
     super.value();