quality static method

String quality(
  1. BuildContext context,
  2. double score
)

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;
}