ReactiveFormConsumer constructor

const ReactiveFormConsumer({
  1. Key? key,
  2. required ReactiveFormConsumerBuilder builder,
  3. Widget? child,
})

Creates an instance of the ReactiveFormConsumer builder 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 FormGroup that is bind with this widget.

Implementation

const ReactiveFormConsumer({
  Key? key,
  required this.builder,
  this.child,
}) : super(key: key);