ProKitDropDown<T> constructor

const ProKitDropDown<T>({
  1. Key? key,
  2. T? selectedValue,
  3. List<T>? selectedValues,
  4. Color? borderColor,
  5. Color? itemTextColor,
  6. Color? backgroundColor,
  7. List<T>? items,
  8. String? hint,
  9. bool? isShowSearch,
  10. EdgeInsetsGeometry? contentPadding,
  11. dynamic onChanged(
    1. T?
    )?,
  12. dynamic onMultiChanged(
    1. List<T>
    )?,
  13. Future<List<T>> dropdownAsyncItems()?,
  14. required String itemAsString(
    1. T
    ),
  15. double width = 140,
  16. double height = 52,
  17. double? textSize,
  18. bool? isReadOnly,
  19. bool? isShowError,
  20. String? errorMessage,
  21. TextStyle itemTextStyleBuilder(
    1. T
    )?,
  22. bool isMultiSelect = false,
})

Implementation

const ProKitDropDown({
  super.key,
  this.selectedValue,
  this.selectedValues,
  this.borderColor,
  this.itemTextColor,
  this.backgroundColor,
  this.items,
  this.hint,
  this.isShowSearch,
  this.contentPadding,
  this.onChanged,
  this.onMultiChanged,
  this.dropdownAsyncItems,
  required this.itemAsString,
  this.width = 140,
  this.height = 52,
  this.textSize,
  this.isReadOnly,
  this.isShowError,
  this.errorMessage,
  this.itemTextStyleBuilder,
  this.isMultiSelect = false,
});