lengthLimit static method
Creates a formatter that limits text length
maxLength - Maximum allowed characters
Implementation
static List<TextInputFormatter> lengthLimit(int maxLength) =>
<TextInputFormatter>[LengthLimitingTextInputFormatter(maxLength)];