DropDrownSelectorComponent constructor

DropDrownSelectorComponent({
  1. required List<GZXDropdownMenuBuilder> dropdownMenuBuilders(
    1. GZXDropdownMenuController dropdownMenuController,
    2. dynamic onHeaderChanged(
      1. int index,
      2. String newHeader
      )
    ),
  2. required List<String> dropDownHeaders,
  3. required String tag,
  4. dynamic onDropDownMenuChanged(
    1. bool isShow,
    2. int? index
    )?,
  5. bool hasDivider = false,
  6. bool headerOnLeftWhenJustOne = true,
  7. double headerHeight = 50.0,
  8. Color headerBackgroundColor = Colors.white,
  9. 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;
}