setFunctions method

void setFunctions({
  1. required void errorFunction(
    1. bool value
    ),
  2. required void onOpenCallback(
    1. bool isOpened
    )?,
  3. required ItemSelectionCallback<T> setItemFunction,
  4. 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;
}