CNPJValidator class Null safety

Constructors

CNPJValidator()

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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

format(String cnpj) String
generate({bool useFormat = false}) String
isValid(String? cnpj, {dynamic stripBeforeValidation = true}) bool
strip(String? cnpj) String

Constants

blockList → const List<String>
['00000000000000', '11111111111111', '22222222222222', '33333333333333', '44444444444444', '55555555555555', '66666666666666', '777777777777…
stipRegex → const String
r'[^\d]'