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