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