computeRuleScore method
Calculate the score of the rule.
For example, in case of a length rule it will be: passwordLength / requiredPasswordLength
Must return a value between 0.0 and 1.0.
Implementation
@override
double computeRuleScore(String password) {
if (password.length > minimalLength) return 1.0;
return password.length / minimalLength;
}