onValuesChanged property
The callback function reference that is called after
the TypeSelector
values changes.
Triggered when the values is changed.
The onValueChanged function must not be null if multiple attribute is [true]
.
Example of usage:
void myOnChangeMethod(List<T> values) {
values.forEach((value) => print(value)); // Do something
}
TypeSelector(
onValuesChanged: myOnChangeMethod,
multiple: true,
);
Implementation
final ValueChanged<List<T>>? onValuesChanged;