msgCharacterCounterAriaLabel method
The aria label to use for the character limit label.
The character count in the form "text is currentCount
characters out of
maxCount
", such as 12 characters out of 25
, when maxCount
is
non-null; otherwise simply "Text is currentCount
characters".
Implementation
String msgCharacterCounterAriaLabel(int currentCount, int? maxCount) =>
maxCount == null
? _msgCharacterCounterAriaLabelNoLimitation(currentCount)
: _msgCharacterCounterAriaLabelNoLimitation(currentCount) +
_msgCharacterCounterAriaLabelWithLimitation(maxCount);