LiDocumentValidator class

CPF/CNPJ document validator backed by essential_core 1.4.0 helpers.

Annotations
  • @Directive.new(selector: '' '[liDocumentValidator][ngControl],' '[liDocumentValidator][ngFormControl],' '[liDocumentValidator][ngModel]', providers: [liDocumentValidatorProvider])

Constructors

LiDocumentValidator()

Properties

hashCode → int
The hash code for this object.
no setterinherited
liDocumentMessage ↔ String
Optional message returned in the validation error payload.
getter/setter pair
liDocumentRequired ↔ bool
Whether blank values should fail validation.
getter/setter pair
liDocumentStrictCnpj ↔ bool
Uses strict CNPJ mask validation when validating CNPJ values.
getter/setter pair
liDocumentValidator ↔ String
Document kind: cpf, cnpj, or cpfOrCnpj.
getter/setter pair
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited
validate(AbstractControl control) → Map<String, dynamic>?
Returns a map of the errors associated with this control.

Operators

operator ==(Object other) → bool
The equality operator.
inherited