FXItemPicker constructor

const FXItemPicker({
  1. Key? key,
  2. required String title,
  3. Color? titleColor,
  4. double? titleSize,
  5. String? hintText,
  6. double? hintSize,
  7. required List items,
  8. required Widget itemWidget(
    1. dynamic item,
    2. bool isSelected
    ),
  9. bool showTag = true,
  10. Widget tagWidget(
    1. dynamic item
    )?,
  11. required dynamic onSearch(
    1. String searchText
    ),
  12. int maximumItem = 99,
  13. bool pickMultipleItem = true,
  14. required List selectedItems,
  15. bool enabledSelect = true,
  16. String confirmButtonTestKey = '',
  17. bool showConfirmButton = true,
  18. String? noDataText,
  19. String? confirmText,
  20. Color? buttonColor,
})

Implementation

const FXItemPicker({
  Key? key,
  required this.title,
  this.titleColor,
  this.titleSize,
  this.hintText,
  this.hintSize,
  required this.items,
  required this.itemWidget,
  this.showTag = true,
  this.tagWidget,
  required this.onSearch,
  this.maximumItem = 99,
  this.pickMultipleItem = true,
  required this.selectedItems,
  this.enabledSelect = true,
  this.confirmButtonTestKey = '',
  this.showConfirmButton = true,
  this.noDataText,
  this.confirmText,
  this.buttonColor,
}) : super(key: key);