setSelectedCondition method
void
setSelectedCondition(
- int minLength,
- dynamic normalCharCount,
- dynamic uppercaseCharCount,
- dynamic numericCharCount,
- dynamic specialCharCount,
Recognize user selected condition from widget constructor to put them on map with their value
Implementation
void setSelectedCondition(int minLength, normalCharCount, uppercaseCharCount,
numericCharCount, specialCharCount) {
_selectedCondition = {
if (minLength > 0) strings.atLeast: false,
if (normalCharCount > 0) strings.normalLetters: false,
if (uppercaseCharCount > 0) strings.uppercaseLetters: false,
if (numericCharCount > 0) strings.numericCharacters: false,
if (specialCharCount > 0) strings.specialCharacters: false
};
}