customLengthFormatter static method
customLengthFormatter limits input to a specified maximum length.
Implementation
static List<TextInputFormatter> customLengthFormatter(int maxLength) {
return [
LengthLimitingTextInputFormatter(maxLength),
];
}