phoneOtpAuthForm function
FormGroup
phoneOtpAuthForm()
Implementation
FormGroup phoneOtpAuthForm() => FormGroup({
phoneControlName: FormControl<String>(
validators: [
Validators.required,
Validators.delegate(_phoneNumberValidator),
],
),
otpControlName: FormControl<String>(
validators: [
Validators.required,
Validators.minLength(6),
Validators.number(allowNegatives: false),
],
),
});