isRuleRespected method

bool isRuleRespected(
  1. String password
)

Function that verify if the rule is respected or not.

Implementation

bool isRuleRespected(String password) =>
    computeRuleScore(password) >= minimumScore;