nameWithLength static method

List<TextInputFormatter> nameWithLength([
  1. int maxLength = 35
])

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)];