checkPassword method
Checks if the parameter passwordOrHash matches this APICredential password.
Implementation
bool checkPassword(String? passwordOrHash) {
if (passwordOrHash == null) return false;
final password = this.password;
return password != null && password.checkPassword(passwordOrHash);
}