APICredential constructor

APICredential(
  1. String username, {
  2. String? token,
  3. String? refreshToken,
  4. String? passwordHash,
  5. APIPasswordHashAlgorithm? hashAlgorithm,
})

Implementation

APICredential(
  this.username, {
  this.token,
  this.refreshToken,
  String? passwordHash,
  APIPasswordHashAlgorithm? hashAlgorithm,
}) : password =
         passwordHash != null
             ? APIPassword(passwordHash, hashAlgorithm: hashAlgorithm)
             : null;