onPickerChange property
onPickerChange: An optional property in the Picker
class that allows you to call a callback when the picker value changes.
This callback has a parameter named value that passes the new value of the picker to it.
Implementation
final OnPickerChange? onPickerChange;