PRuleCpf class
Constructors
-
PRuleCpf(String? _value, {String message = "Invalid CPF"})
-
Check if the value is a valid CPF
value
is the value to check
message is the error message
Methods
-
isValid(String? cpf, [dynamic stripBeforeValidation = true])
→ bool
-
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
toString()
→ String
-
A string representation of this object.
inherited
-
validate()
→ String?
-
Validate the value
Return null if the value is valid
Return the error message if the value is invalid
Return null if the value is empty
override