onChanged property
A callback that is called when the value changes.
This field holds a function that will be called when the value changes. The function takes a single parameter of type String, which represents the new value.
Implementation
final ValueChanged<String>? onChanged;