InheritedProvider<T>.value constructor

InheritedProvider<T>.value({
  1. Key? key,
  2. required T value,
  3. UpdateShouldNotify<T>? updateShouldNotify,
  4. StartListening<T>? startListening,
  5. bool? lazy,
  6. TransitionBuilder? builder,
  7. 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);