remainingTextFieldCharacterCount method

  1. @override
String remainingTextFieldCharacterCount (
  1. int remainingCount
)
inherited

The label for the TextField's character counter.

Implementation

@override
String remainingTextFieldCharacterCount(int remainingCount) {
  return intl.Intl.pluralLogic(
    remainingCount,
    zero: remainingTextFieldCharacterCountZero,
    one: remainingTextFieldCharacterCountOne,
    two: remainingTextFieldCharacterCountTwo,
    many: remainingTextFieldCharacterCountMany,
    few: remainingTextFieldCharacterCountFew,
    other: remainingTextFieldCharacterCountOther,
    locale: _localeName,
  ).replaceFirst(r'$remainingCount', formatDecimal(remainingCount));
}