InheritedProvider<T>.value constructor
InheritedProvider<T>.value ({
- Key? key,
- required T value,
- UpdateShouldNotify<
T> ? updateShouldNotify, - StartListening<
T> ? startListening, - bool? lazy,
- TransitionBuilder? builder,
- Widget? child,
Expose to its descendants an existing value,
Implementation
InheritedProvider.value({
Key? key,
required T value,
UpdateShouldNotify<T>? updateShouldNotify,
StartListening<T>? startListening,
bool? lazy,
this.builder,
Widget? child,
}) : _lazy = lazy,
_delegate = _ValueInheritedProvider(
value: value,
updateShouldNotify: updateShouldNotify,
startListening: startListening,
),
super(key: key, child: child);