License class

Represents the behavior of a parsed license

Constructors

License({String? firstName, String? lastName, String? middleName, DateTime? expirationDate, DateTime? issueDate, DateTime? dateOfBirth, Gender? gender, EyeColor? eyeColor, double? height, String? streetAddress, String? city, String? state, PostalCode? postalCode, String? customerId, String? uniqueCustomerId, required String? driversLicenseNumber, String? documentId, IssuingCountry? country, Truncation? middleNameTruncation, Truncation? firstNameTruncation, Truncation? lastNameTruncation, String? streetAddressSupplement, HairColor? hairColor, String? placeOfBirth, String? auditInformation, String? inventoryControlNumber, String? lastNameAlias, String? firstNameAlias, String? suffixAlias, NameSuffix? suffix, String? version, String? pdf417})

Properties

auditInformation String?
The license issuer's audit information
final
city String?
The license holder's city
final
country IssuingCountry?
The license's issuing country
final
customerId String?
The license holder's customer Id (e.g. Driver License Number). You generally want to use driversLicenseNumber instead of this directly.
final
dateOfBirth DateTime?
The license holder's date of birth
final
documentId String?
A unique document identifier
final
driversLicenseNumber String?
This is usually the customerId but it can also be the uniqueCustomerId
final
expirationDate DateTime?
The expiration date of the license
final
eyeColor EyeColor?
The license holder's eye color
final
firstName String?
The license holder's first/given name
final
firstNameAlias String?
The license holder's first name alias
final
firstNameTruncation Truncation?
A determination of if the first name was truncated
final
gender Gender?
The license holder's gender
final
hairColor HairColor?
The license holder's hair color
final
hashCode int
The hash code for this object.
no setterinherited
height double?
The license holder's height
final
inventoryControlNumber String?
The license issuer's
final
issueDate DateTime?
The issue date of the license
final
lastName String?
The license holder's last/given name
final
lastNameAlias String?
The license holder's last name alias
final
lastNameTruncation Truncation?
A determination of if the last name was truncated
final
middleName String?
The license holder's middle name
final
middleNameTruncation Truncation?
A determination of if the middle name was truncated
final
pdf417 String?
The raw pdf417 scan data used to build this parsed license
final
placeOfBirth String?
The license holder's place of birth
final
postalCode → PostalCode?
The license holder's postal code
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
state String?
The license holder's state
final
streetAddress String?
The license holder's street address
final
streetAddressSupplement String?
The license holder's supplemental street address
final
suffix NameSuffix?
The license holder's name suffix
final
suffixAlias String?
The license holder's name suffix alias
final
uniqueCustomerId String?
Only available in version 1. You generally want to use driversLicenseNumber instead of this directly.
final
version String?
The AAMVA version to which this parsed license conforms
final

Methods

hasBeenIssued() bool
isAcceptable() bool
isExpired() bool
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

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