getTextForNumberLessThan1000 method

String getTextForNumberLessThan1000(
  1. int number
)

Implementation

String getTextForNumberLessThan1000(int number) {
  final numberText = getNumberText(number);
  if (numberText != null) return numberText;

  final lastTwoDigits = number % 100;
  final lastTwoDigitsText =
      lastTwoDigits == 0 ? "" : getTextForNumberLessThan100(lastTwoDigits);

  final digitAtHundredsPlace = number ~/ 100;

  return mapper.combineLessThan1000(
    digitAtHundredsPlace,
    lastTwoDigitsText,
  );
}