LengthLimitingTextInputFormatter constructor
Creates a formatter that prevents the insertion of more characters than a limit.
The maxLength
must be null or greater than zero. If it is null, then no
limit is enforced.
Implementation
LengthLimitingTextInputFormatter(this.maxLength)
: assert(maxLength == null || maxLength > 0);