addController method

dynamic addController(
  1. FormGroup form
)

Implementation

addController(FormGroup form) {
  (form.control(_resourceDeliveredKey) as FormArray)
      .add(FormControl<ProductVariantModel>());
  (form.control(_quantityDistributedKey) as FormArray)
      .add(FormControl<int>(value: 0, validators: [Validators.min(1)]));
}