lengthLimit static method

List<TextInputFormatter> lengthLimit(
  1. int maxLength
)

Creates a formatter that limits text length maxLength - Maximum allowed characters

Implementation

static List<TextInputFormatter> lengthLimit(int maxLength) =>
    <TextInputFormatter>[LengthLimitingTextInputFormatter(maxLength)];