Validators class final
Constructors
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
validate499FilerId(
String? value) → String? - Ensures that a user provides an ID that is 6 digits. TODO: Could query apps.fcc.gov for validation of this field??
-
validateAddress(
String? value) → String? - Ensures that a user provided an address, not much beyond that because we rely on google maps autocomplete api This should ensure reasonable input, but this may be subject to change depending on how silly our users get...
-
validateAutodialPurpose(
String? value) → String? -
validateBizName(
String? value) → String? - Validator for the form fields which ask about business name
-
validateBusinessType(
String? value) → String? -
validateCustomerType(
String? value) → String? -
validateDNCId(
String? value) → String? -
validateFCC214(
String? value) → String? - Ensures that a user provides
-
validateFEIN(
String? value) → String? - Ensures that FEIN will be of form 9xx-xxx-xxxx (stripping out the "-")
-
validateFRN(
String? value) → String? - Ensures that FRN will be a 10 digit unique identifier
-
validateFullname(
String? value) → String? - Ensures that the user has input at least something into the field
-
validateName(
String? value, int pos) → String? - Validator for the first name and last name form fields
-
validateOCN(
String? value) → String? - Ensures that a user provides an OCN that is 4 characters
-
validatePhone(
String? value) → String? -
validateRMDNum(
String? value) → String? -
validateRuralCallRegistryNum(
String? value) → String? -
validateServices(
String? value) → String? -
validateStateCountry(
String? value) → String? - Does minimal validation of input. Only checks that input is more than 2 chars really. Maybe add in google autocomplete if necessary, but don't want to drive api cost if not required
-
validateTracebacks(
String? value) → String? -
validateVoiceServices(
String? value) → String? -
validateWebsite(
String? value) → String? - Ensures that a provided string is the same form as a valid URL
-
validateWebsiteNullable(
String? value) → String? - Version of validateWebsite that does not care if the value is null, useful for social links.
-
validateYear(
String? value) → String? - Ensures that the input year is valid and not > the current year