minPhoneNumValidation static method

Map<String, dynamic>? minPhoneNumValidation(
  1. AbstractControl control
)

Implementation

static Map<String, dynamic>? minPhoneNumValidation(
  AbstractControl<dynamic> control,
) {
  if (control.value != null &&
      control.value.toString().isNotEmpty &&
      control.value.toString().length < 9) {
    return {'minLength': true};
  }
}