nameWithLength static method
Creates a formatter for names with length limit
maxLength - Maximum allowed characters (default: 35)
Implementation
static List<TextInputFormatter> nameWithLength([int maxLength = 35]) =>
<TextInputFormatter>[...nameField, ...lengthLimit(maxLength)];