checkStrength method
Implementation
Map<String, dynamic> checkStrength() {
double strength = _calculateStrength();
String strengthLabel = strength <= 0.25 ? labels['weak']! : (strength <= 0.5 ? labels['fair']! : (strength <= 0.75 ? labels['good']! : labels['strong']!));
return {
'strength': strength,
'strengthLabel': strengthLabel,
'suggestions': [],
};
}