InheritedProvider<T>.value constructor
InheritedProvider<T>.value ({
- required T value,
- Key? key,
- UpdateShouldNotify<
T> ? updateShouldNotify, - StartListening<
T> ? startListening, - bool? lazy,
- TransitionBuilder? builder,
- Widget? child,
Provides value, made and disposed of elsewhere.
Implementation
InheritedProvider.value({
required T value,
super.key,
UpdateShouldNotify<T>? updateShouldNotify,
StartListening<T>? startListening,
bool? lazy,
this.builder,
super.child,
}) : lazy = lazy ?? true,
_delegate = _ValueDelegate(
value: value,
updateShouldNotify: updateShouldNotify,
startListening: startListening,
);