NUPValidator class

Valida e formata números processuais no padrão definido pelo CNJ.

Constructors

NUPValidator()

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 nup) → String
Formata o NUP com a máscara NNNNNNN-DD.AAAA.J.TR.OOOO.
isValid(String? nup, {bool stripBeforeValidation = true}) → bool
Retorna true se nup tem formato e dígitos verificadores válidos.
strip(String? nup) → String
Remove caracteres não numéricos do número processual.

Constants

stripRegex → const String