VerhoeffChecksum class

Verhoeff checksum implementation for Aadhaar validation.

Constructors

VerhoeffChecksum()

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

generate(String numberWithoutCheckDigit) → String
Generates the Verhoeff check digit for a given numeric string. Provide the number without the check digit; returns a single digit char.
validate(String number) → bool
Validates Verhoeff checksum for the given number string.