Authenticators constructor

Authenticators({
  1. Iterable<Username>? usernames,
  2. Password? password,
  3. Iterable<WebAuthN>? webAuthN,
  4. Iterable<TOTP>? totps,
  5. Iterable<OTPSMS>? otpSms,
  6. Iterable<OTPEmail>? otpEmail,
  7. Iterable<AuthenticationKey>? authenticationKeys,
  8. Iterable<IdentityProvider>? identityProviders,
})

Implementation

factory Authenticators({
  $core.Iterable<Username>? usernames,
  Password? password,
  $core.Iterable<WebAuthN>? webAuthN,
  $core.Iterable<TOTP>? totps,
  $core.Iterable<OTPSMS>? otpSms,
  $core.Iterable<OTPEmail>? otpEmail,
  $core.Iterable<AuthenticationKey>? authenticationKeys,
  $core.Iterable<IdentityProvider>? identityProviders,
}) {
  final $result = create();
  if (usernames != null) {
    $result.usernames.addAll(usernames);
  }
  if (password != null) {
    $result.password = password;
  }
  if (webAuthN != null) {
    $result.webAuthN.addAll(webAuthN);
  }
  if (totps != null) {
    $result.totps.addAll(totps);
  }
  if (otpSms != null) {
    $result.otpSms.addAll(otpSms);
  }
  if (otpEmail != null) {
    $result.otpEmail.addAll(otpEmail);
  }
  if (authenticationKeys != null) {
    $result.authenticationKeys.addAll(authenticationKeys);
  }
  if (identityProviders != null) {
    $result.identityProviders.addAll(identityProviders);
  }
  return $result;
}