ModularCustomizableDropdown constructor

const ModularCustomizableDropdown({
  1. required ReactMode reactMode,
  2. required dynamic onValueSelect(
    1. String selectedValue
    ),
  3. required List<String> allDropdownValues,
  4. required bool barrierDismissible,
  5. required DropdownStyle dropdownStyle,
  6. required bool collapseOnSelect,
  7. void onDropdownVisibilityChange(
    1. bool visible
    )?,
  8. CallbackReactParams? callbackReactParams,
  9. TapReactParams? tapReactParams,
  10. FocusReactParams? focusReactParams,
  11. Key? key,
})

Implementation

const ModularCustomizableDropdown({
  required this.reactMode,
  required this.onValueSelect,
  required this.allDropdownValues,
  required this.barrierDismissible,
  required this.dropdownStyle,
  required this.collapseOnSelect,
  this.onDropdownVisibilityChange,
  this.callbackReactParams,
  this.tapReactParams,
  this.focusReactParams,
  Key? key,
})  : assert((tapReactParams != null && reactMode == ReactMode.tapReact) ||
          (focusReactParams != null && reactMode == ReactMode.focusReact) ||
          (callbackReactParams != null &&
              reactMode == ReactMode.callbackReact)),
      super(key: key);