Use maxLengthEnforcement instead of maxLengthEnforced

Summary

Context

Description of change

Migration guide

Default values of maxLengthEnforcement
To enforce the limit all the time
To not enforce the limitation
To enforce the limit, but not for composing text
Be wary of assuming input will not use composing regions

Timeline

References

Summary

To control the behavior of maxLength in the
LengthLimitingTextInputFormatter, use maxLengthEnforcement
instead of the now-deprecated maxLengthEnforced.

Context

The maxLengthEnforced parameter was used to decide
whether text fields should truncate the input value
when it reaches the maxLength limit, or whether
(for TextField and TextFormField)
a warning message should instead be shown in the
character count when the length of the user input
exceeded maxLength.