closeOnTapOutside property

bool closeOnTapOutside
final

Base class for dropdown widgets.

  • initData: Initial list of data for the dropdown.
  • selectedValue: Currently selected dropdown value.
  • labelText: Text for the label of the dropdown.
  • hintText: Placeholder text shown when no value is selected.
  • onOptionSelected: Callback function triggered when an option is selected.
  • validator: Optional validation function for dropdown selection.
  • decoration: Custom styling for the dropdown field.
  • arrowWidget: Widget for the arrow icon displayed in the dropdown.
  • dropdownType: Default value is DropdownType.expandable, and it's used to switch between the expandable, and the overlay appearance
  • disabled: Whether the dropdown is disabled.
  • asyncInitData: Future that provides the initial list of dropdown options.
  • closeOnTapOutside: Whether to close the dropdown when the user taps outside the dropdown.

Implementation

final bool closeOnTapOutside;