Authenticator constructor Null safety

Authenticator(
  1. {required String aaid,
  2. required bool isSupportedByHardware,
  3. required RegistrationInfo registration,
  4. required UserEnrollment userEnrollment}
)

Default constructor for Authenticator.

  • aaid: the AAID associated with the authenticator.
  • isSupportedByHardware: flag that tells whether the device has hardware supporting this authenticator.
  • registration: the registration information.
  • userEnrollment: the user enrollment information.

Implementation

factory Authenticator({
  required String aaid,
  required bool isSupportedByHardware,
  required RegistrationInfo registration,
  required UserEnrollment userEnrollment,
}) {
  return AuthenticatorImpl(
    aaid: aaid,
    isSupportedByHardware: isSupportedByHardware,
    registration: registration,
    userEnrollment: userEnrollment,
  );
}