APICredential constructor

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

Implementation

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