onChange property

void Function(String, String) onChange
final

onChange is called when the selected option is changed It will pass back the value and the index of the option (can be different for different case).

Implementation

final void Function(String, String) onChange;