ValueListenableBuilder<T> constructor
const
ValueListenableBuilder<T> ({
- Key? key,
- required ValueListenable<
T> valueListenable, - required ValueWidgetBuilder<
T> builder, - Widget? child,
Creates a ValueListenableBuilder.
The valueListenable
and builder
arguments must not be null.
The child
is optional but is good practice to use if part of the widget
subtree does not depend on the value of the valueListenable
.
Implementation
const ValueListenableBuilder({
Key? key,
required this.valueListenable,
required this.builder,
this.child,
}) : super(key: key);