Returns true if the password is empty or meets all requirements.
bool isValid(String password) => isEmpty || (isNotEmpty && every((requirement) => requirement.validator(password)));