characterCounter property

  1. @Input()
set characterCounter (Function? counterFn)

A custom character counter function.

Takes in the input text; returns how many characters the text should be considered as.

Implementation

@Input()
set characterCounter(Function? counterFn) {
  if (counterFn != null) {
    _characterCounter = counterFn as CharacterCounter;
    updateInputTextLength();
  }
}