RsaIdUtils class
Utility functions for manipulating and validating South African ID numbers.
Constructors
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
-
generateCitizenship(
[Citizenship? citizenship]) → String -
Generates a citizenship code (C) based on the provided
citizenship
. -
generateDate(
{DateTime? maxDate, DateTime? minDate}) → String - Generates a random date of birth (YYMMDD) within a specified date range.
-
generateGender(
Gender? gender) → String -
Generates a gender code (SSSS) based on the provided
gender
. -
luhnAppend(
String input) → String - Appends a Luhn checksum digit (Z) to the input string.
-
luhnChecksum(
List< int> digits) → int - Calculates the Luhn checksum for a list of digits (alternative implementation).