CheckDigit<T> class abstract

An abstract class for check digit algorithms implementation.

Implementers

Constructors

CheckDigit()
const

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

checkDigit(String data) → T
Computes the check digit from data.
checkDigitAsString(String data) String
Computes the check digit from data as 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? data) bool
Validates the data integrity. It assumes that the check digit is appended at end of the data.

Operators

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