DeDriverLicenseFront constructor

DeDriverLicenseFront(
  1. GenericDocument document
)

Implementation

DeDriverLicenseFront(GenericDocument document) : super(document) {
  /// Photo image
  photo = document
      .fieldByTypeName("Photo")!
      .let((field) => TextFieldWrapper(field));

  /// Surname
  surname = document
      .fieldByTypeName("Surname")!
      .let((field) => TextFieldWrapper(field));

  /// Given names
  givenNames = document
      .fieldByTypeName("GivenNames")!
      .let((field) => TextFieldWrapper(field));

  /// Birth date
  birthDate = document
      .fieldByTypeName("BirthDate")!
      .let((field) => ValidatedTextFieldWrapper(field));

  /// Birthplace
  birthplace = document
      .fieldByTypeName("Birthplace")!
      .let((field) => TextFieldWrapper(field));

  /// Issue date
  issueDate = document
      .fieldByTypeName("IssueDate")!
      .let((field) => ValidatedTextFieldWrapper(field));

  /// Issuing authority
  issuingAuthority = document
      .fieldByTypeName("IssuingAuthority")!
      .let((field) => TextFieldWrapper(field));

  /// Expiry date
  expiryDate = document
      .fieldByTypeName("ExpiryDate")!
      .let((field) => ValidatedTextFieldWrapper(field));

  /// Document ID number (in the top-right corner)
  id =
      document.fieldByTypeName("ID")!.let((field) => TextFieldWrapper(field));

  /// Signature image
  signature = document
      .fieldByTypeName("Signature")!
      .let((field) => TextFieldWrapper(field));

  /// Driver's license categories
  licenseCategories = document
      .fieldByTypeName("LicenseCategories")!
      .let((field) => TextFieldWrapper(field));
}