Cpf class

Cpf utility functions namespace

Properties

hashCode int
The hash code for this object.
no setterinherited
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

Operators

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

Static Methods

format(String cpf) String
Formats the standard 11 digits cpf.
generate({States? state, bool formatted = true}) String
Generate a valid CPF, formatted or not, based on the state if one is given, if not the State will be randomly generated too.
strip(String cpf) String
Removes the '.' and '-' from formatted CPF's.
validate(String cpf) bool
Returns true if the given cpf is valid.