ReactiveStatusListenableBuilder constructor

const ReactiveStatusListenableBuilder({
  1. Key? key,
  2. String? formControlName,
  3. AbstractControl<Object?>? formControl,
  4. required ReactiveListenableWidgetBuilder<Object?> builder,
  5. Widget? child,
})

Creates an instance of ReactiveStatusListenableBuilder.

The builder function must not be null.

Must provide a forControlName or a formControl but not both at the same time.

Implementation

const ReactiveStatusListenableBuilder({
  Key? key,
  this.formControlName,
  this.formControl,
  required this.builder,
  this.child,
})  : assert(
          (formControlName != null && formControl == null) ||
              (formControlName == null && formControl != null),
          'Must provide a formControlName or a formControl, but not both at the same time.'),
      super(key: key);