buildForm method
Implementation
FormGroup buildForm(ComplaintInboxState state) {
return fb.group(<String, Object>{
_complaintNumber: FormControl<String>(
validators: [],
value: state.searchKeys?.complaintNumber,
),
_mobileNumber: FormControl<String>(
validators: [Validators.delegate(
(validator) => CustomValidator.validMobileNumber(validator))],
value: state.searchKeys?.complainantMobileNumber,
),
});
}