ICPFUtil class abstract

A Dart package to generate, validate and format Brazilian's CPF

Implementers
Annotations
  • @immutable

Constructors

ICPFUtil()

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

format(String cpf) String
This method will format a given CPF, that should be a String
generate({int? state}) String
This method generates a valid CPF, which is returned as a String
generateFrom(List<int> numbers) String
This method generates a valid CPF from a given list of integers, which is returned as a String
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 cpf, {int? state}) bool
This method checks if a given CPF is valid and returns true or false

Operators

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