remainingTextFieldCharacterCount method
- @override
override
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));
}