counter property
String
get
counter
Implementation
String get counter {
var currentLength = text.length;
final maxLength = maxCharacters;
return maxLength > 0
? '$currentLength / $maxLength'
: currentLength > 0
? "$currentLength"
: "";
}