setFunctions method
void
setFunctions({
- required void errorFunction(
- bool value
- required void onOpenCallback(
- bool isOpened
- required ItemSelectionCallback<
T> setItemFunction, - required VoidCallback openFunction,
Implementation
void setFunctions({
required void Function(bool value) errorFunction,
required void Function(bool isOpened)? onOpenCallback,
required ItemSelectionCallback<T> setItemFunction,
required VoidCallback openFunction,
}) {
_onError = errorFunction;
onOpen = onOpenCallback;
_openFunction = openFunction;
_setValueFunction = setItemFunction;
}