maxValueLength property

int? get maxValueLength

The maximum number of characters that can be entered into an editable text field.

For the purpose of this function a character is defined as one Unicode scalar value.

This should only be set when isTextField is true. Defaults to null, which means no limit is imposed on the text field.

Implementation

int? get maxValueLength => _maxValueLength;
set maxValueLength (int? value)

Implementation

set maxValueLength(int? value) {
  if (value == maxValueLength) {
    return;
  }
  _maxValueLength = value;
  _hasBeenAnnotated = true;
}