ModularCustomizableDropdown.displayOnTap constructor
ModularCustomizableDropdown.displayOnTap({
- required dynamic onValueSelect(
- String selectedValue
- required List<
String> allDropdownValues, - required Widget target,
- dynamic onDropdownVisible()?,
- bool barrierDismissible = true,
- DropdownStyle style = const DropdownStyle(invertYAxisAlignmentWhenOverflow: true),
- bool collapseOnSelect = true,
- Key? key,
Automatically displays the dropdown when the target is clicked
Implementation
factory ModularCustomizableDropdown.displayOnTap({
required Function(String selectedValue) onValueSelect,
required List<String> allDropdownValues,
required Widget target,
Function(bool)? onDropdownVisible,
bool barrierDismissible = true,
DropdownStyle style =
const DropdownStyle(invertYAxisAlignmentWhenOverflow: true),
bool collapseOnSelect = true,
Key? key,
}) {
return ModularCustomizableDropdown(
reactMode: ReactMode.tapReact,
onValueSelect: onValueSelect,
collapseOnSelect: collapseOnSelect,
allDropdownValues: allDropdownValues,
tapReactParams: TapReactParams(target: target),
dropdownStyle: style,
onDropdownVisibilityChange: onDropdownVisible,
barrierDismissible: barrierDismissible,
);
}