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