isValid property

bool isValid

Either or not the password apply to the PasswordPolicy.

Implementation

bool get isValid =>
    areMandatoryRulesRespected && score >= passwordPolicy.minimumScore;