msgCharacterCounter method

String msgCharacterCounter(
  1. int currentCount,
  2. int? maxCount
)

The message to display when character counter is shown.

The character count in the form "currentCount / maxCount", such as 12 / 25, when maxCount is non-null; otherwise simply "currentCount".

Implementation

String msgCharacterCounter(int currentCount, int? maxCount) =>
    maxCount == null
        ? '$currentCount'
        : _msgCharacterCounter(currentCount, maxCount);