ssn static method

FormFieldValidator<String> ssn({
  1. String? errorText,
  2. bool checkNullOrEmpty = true,
})

FormFieldValidator that requires the field's value to be a valid SSN (Social Security Number).

Parameters:

  • errorText The error message when the SSN is invalid.
  • checkNullOrEmpty Whether to check for null or empty values.

Implementation

static FormFieldValidator<String> ssn({
  String? errorText,
  bool checkNullOrEmpty = true,
}) => SsnValidator(
  errorText: errorText,
  checkNullOrEmpty: checkNullOrEmpty,
).validate;