notesWithLength static method

List<TextInputFormatter> notesWithLength([
  1. int maxLength = 500
])

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