RsaDriversLicense class
A South African Driver's License. Includes all the details of the license.
- Implemented types
Constructors
-
RsaDriversLicense({@required String idNumber, @required String firstNames, @required String surname, @required String gender, @required DateTime birthDate, @required List<
DateTime> issueDates, @required String licenseNumber, @required List<String> vehicleCodes, @required String prdpCode, @required String idCountryOfIssue, @required String licenseCountryOfIssue, @required List<String> vehicleRestrictions, @required String idNumberType, @required String driverRestrictions, @required DateTime prdpExpiry, @required String licenseIssueNumber, @required DateTime validFrom, @required DateTime validTo, @required Uint8List imageData}) -
const
- RsaDriversLicense.fromBarcodeBytes(Uint8List bytes)
-
Returns a
DriversLicense
instance from the bytes read from the barcode of the DriversLicense. [...]factory
Properties
- birthDate → DateTime
-
The birth date of the person to whom this document belongs.
final
- driverRestrictions → String
-
A string representing driver restriction codes placed on this license. [...]
final
- firstNames → String
-
The first names of the person to whom this document belongs. [...]
final
- gender → String
-
The text representing gender of the person to whom this document belongs. [...]
final
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- idCountryOfIssue → String
-
The country code representing the country in which the ID of the person
to whom this document belongs was issued.
final
- idNumber → String
-
The ID Number of the person to whom this document belongs.
final
- idNumberType → String
-
The type of the ID number. '02' represents a South African ID number.
final
- imageData → Uint8List
-
The image data of the photo on this license in bytes. [...]
final
-
issueDates
→ List<
DateTime> -
The issue date for each license code. Normally contains a date for each
vehicleCode in vehicleCodes.
final
- licenseCountryOfIssue → String
-
The country code representing the country in which this license was issued.
final
- licenseIssueNumber → String
-
The issue number of this license.
final
- licenseNumber → String
-
The license number of this license.
final
- prdpCode → String
-
The PrDP Code appearing on the license.
final
- prdpExpiry → DateTime
-
The expiry date of the PrDP Permit.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
- surname → String
-
The last name of the person to whom this document belongs.
final
- validFrom → DateTime
-
The date from which this license is valid.
final
- validTo → DateTime
-
The date to which this license is valid.
final
-
vehicleCodes
→ List<
String> -
The list of vehicle codes appearing on the license.
final
-
vehicleRestrictions
→ List<
String> -
The vehicle restrictions placed on this license
final
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator. [...]
inherited