ValueListenableBuilder<T> constructor

const ValueListenableBuilder<T>({
  1. Key? key,
  2. required ValueListenable<T> valueListenable,
  3. required ValueWidgetBuilder<T> builder,
  4. Widget? child,
})

Creates a ValueListenableBuilder.

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({
  super.key,
  required this.valueListenable,
  required this.builder,
  this.child,
});