ValueListenableBuilderModifier<T> constructor

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

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