AppDropDownWithSingleSelection constructor

const AppDropDownWithSingleSelection({
  1. Key? key,
  2. double? width,
  3. required Rx<DropDownResponse?> selectedId,
  4. required RxList<DropDownResponse> listItems,
  5. required String hintText,
  6. required VoidCallback onClearPressed,
  7. dynamic onItemSelected(
    1. DropDownResponse
    )?,
  8. bool isAPISearchEnabled = false,
  9. bool isShowAddNewButton = false,
  10. bool isShowResetButton = false,
  11. bool isPaginationEnabled = false,
  12. bool isValidator = false,
  13. dynamic onSearchRequest(
    1. String
    )?,
  14. VoidCallback? onReset,
  15. VoidCallback? onAddNew,
  16. String? validator(
    1. String?
    )?,
})

Implementation

const AppDropDownWithSingleSelection({
  super.key,
  this.width,
  required this.selectedId,
  required this.listItems,
  required this.hintText,
  required this.onClearPressed,
  this.onItemSelected,
  this.isAPISearchEnabled = false,
  this.isShowAddNewButton = false,
  this.isShowResetButton = false,
  this.isPaginationEnabled = false,
  this.isValidator = false,
  this.onSearchRequest,
  this.onReset,
  this.onAddNew,
  this.validator,
});