DropDrownSelectorComponent constructor
DropDrownSelectorComponent({
- required List<
GZXDropdownMenuBuilder> dropdownMenuBuilders(- GZXDropdownMenuController dropdownMenuController,
- dynamic onHeaderChanged()
- required List<
String> dropDownHeaders, - required String tag,
- dynamic onDropDownMenuChanged()?,
- bool hasDivider = false,
- bool headerOnLeftWhenJustOne = true,
- double headerHeight = 50.0,
- Color headerBackgroundColor = Colors.white,
- required Widget body,
Implementation
DropDrownSelectorComponent(
{required this.dropdownMenuBuilders,
required this.dropDownHeaders,
required this.tag,
this.onDropDownMenuChanged,
this.hasDivider = false,
this.headerOnLeftWhenJustOne = true,
this.headerHeight = 50.0,
this.headerBackgroundColor = Colors.white,
required this.body}) {
logic = Get.put(DropDrownSelectorLogic(), tag: tag);
state = Get.find<DropDrownSelectorLogic>(tag: tag).state;
state.dropDownHeaderItemStrings = this.dropDownHeaders;
}