FlutstrapDropdown<T> constructor

const FlutstrapDropdown<T>({
  1. Key? key,
  2. required List<FSDropdownItem<T>> items,
  3. T? value,
  4. ValueChanged<T?>? onChanged,
  5. String? placeholder,
  6. String? labelText,
  7. String? errorText,
  8. String? helperText,
  9. bool enabled = true,
  10. bool isExpanded = false,
  11. FSDropdownVariant variant = FSDropdownVariant.primary,
  12. FSDropdownSize size = FSDropdownSize.md,
  13. Widget? prefixIcon,
  14. Widget? suffixIcon,
  15. bool showSearch = false,
  16. String? searchHint,
  17. InputDecoration? decoration,
  18. double menuMaxHeight = _DropdownConstants.defaultMenuMaxHeight,
  19. BorderRadiusGeometry? borderRadius,
  20. Duration searchDebounceDelay = _DropdownConstants.searchDebounceDelay,
})

Implementation

const FlutstrapDropdown({
  super.key,
  required this.items,
  this.value,
  this.onChanged,
  this.placeholder,
  this.labelText,
  this.errorText,
  this.helperText,
  this.enabled = true,
  this.isExpanded = false,
  this.variant = FSDropdownVariant.primary,
  this.size = FSDropdownSize.md,
  this.prefixIcon,
  this.suffixIcon,
  this.showSearch = false,
  this.searchHint,
  this.decoration,
  this.menuMaxHeight = _DropdownConstants.defaultMenuMaxHeight,
  this.borderRadius,
  this.searchDebounceDelay = _DropdownConstants.searchDebounceDelay,
});