);

const

CupertinoTextField

cupertinoTextField

CupertinoTextField

maxLengthEnforced:

false

);

final

lengthEnforced

cupertinoTextField

maxLengthEnforced

Code after migration:

const

TextField

textField

TextField

maxLengthEnforcement:

MaxLengthEnforcement

enforce

);

const

TextField

textField

TextField

maxLengthEnforcement:

MaxLengthEnforcement

none

);

final

lengthEnforced

textField