PRuleCnpj class

Implemented types

Constructors

PRuleCnpj(String? _value, {String message = "Invalid CNPJ"})
Check if the value is a valid CNPJ value is the value to check message is the error message

Properties

hashCode int
The hash code for this object.
no setterinherited
message String
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

format(String cnpj) String
generate([bool useFormat = false]) String
isValid(String? cnpj, [dynamic stripBeforeValidation = true]) bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
strip(String? cnpj) String
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

Operators

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

Constants

blackList → const List<String>