checkPassword method

bool checkPassword(
  1. String username,
  2. String password
)

Implementation

bool checkPassword(String username, String password) {
  var pass = usernamesAndPasswords[username];
  return pass != null && pass == password;
}