ValueNotifierWrapper<T> constructor
const
ValueNotifierWrapper<T> ({
- required T initialValue,
- required CallbackWidgetBuilder<
ValueNotifier< child,T> > - ValueChanged<
T> ? onChange, - Key? key,
Creates a ValueNotifierWrapper.
The initialValue
is used to initialize the ValueNotifier.
The child
builder receives the ValueNotifier instance.
The optional onChange
callback is called whenever the value changes.
Implementation
const ValueNotifierWrapper({
required this.initialValue,
required this.child,
this.onChange,
super.key,
});