notesWithLength static method
Creates a formatter for notes with length limit
maxLength - Maximum allowed characters (default: 500)
Implementation
static List<TextInputFormatter> notesWithLength([int maxLength = 500]) =>
<TextInputFormatter>[...notesField, ...lengthLimit(maxLength)];