value property

int value

Implementation

int get value {
  switch (this) {
    case QueryMatchRating.possible:
      return 30;
    case QueryMatchRating.information:
      return 50;
    case QueryMatchRating.exact:
      return 100;
    default:
      return 0; // No match.
  }
}