quality static method
Localized quality of a 0–1 score.
Implementation
static String quality(BuildContext context, double score) {
final l = NmRealEstate.l10n(context);
return score >= .8
? l.matchExcellent
: score >= .6
? l.matchGood
: score >= .4
? l.matchFair
: l.matchPossible;
}