DriverLicenseContent class final
A North American driver's license or ID card (AAMVA DL/ID standard, the PDF417 on the back).
Only parsed. toPayload returns raw. The data is personal: keep it only as long as the app needs it.
- Inheritance
-
- Object
- BarcodeContent
- DriverLicenseContent
Constructors
- DriverLicenseContent({required String raw, String? licenseNumber, String? firstName, String? middleName, String? lastName, DateTime? birthDate, DateTime? issueDate, DateTime? expiryDate, String? street, String? city, String? state, String? postalCode, String? country})
-
Creates driver's license content.
const
Properties
- birthDate → DateTime?
-
The date of birth (
DBB).final - city → String?
-
The city (
DAI).final - country → String?
-
The country:
USAorCAN(DCG).final - expiryDate → DateTime?
-
The expiry date (
DBA).final - firstName → String?
-
The first name (
DAC, older cardsDCT).final - hashCode → int
-
The hash code for this object.
no setteroverride
- issueDate → DateTime?
-
The issue date (
DBD).final - lastName → String?
-
The family name (
DCS).final - licenseNumber → String?
-
The license or ID number (
DAQ).final - middleName → String?
-
Middle names (
DAD).final - postalCode → String?
-
The postal code (
DAK), without trailing zeros of an unused ZIP+4.final - raw → String
-
The text as read.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- state → String?
-
The state or province code, such as
CA(DAJ).final - street → String?
-
The street address (
DAG).final - uri → Uri?
-
A link that opens this content in the app made for it, for
launchUrlof package:url_launcher;nullwhen there is none.no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toPayload(
) → String -
raw, the text as read.
override
-
toString(
) → String -
Without the personal data.
override
-
validate(
) → List< ContentIssue> -
The problems that keep toPayload from building this value, such as
an empty network name or a latitude out of range. Empty when the value
can be built. For forms: show each ContentIssue.message next to its
ContentIssue.field.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override