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. 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,
  Widget child,
})  : _lazy = lazy,
      _delegate = _ValueInheritedProvider(
        value: value,
        updateShouldNotify: updateShouldNotify,
        startListening: startListening,
      ),
      super(key: key, child: child);