checkPassword method

bool checkPassword(
  1. String? passwordOrHash
)

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);
}