S360fDropDown constructor

const S360fDropDown({
  1. required String? label,
  2. required ValueChanged<Object?> onChanged,
  3. required List<String> items,
  4. Key? key,
  5. String? value,
  6. String hint = 'Select an option',
  7. double? itemWidth,
  8. double? height,
  9. bool? readOnly = false,
  10. bool? isRequired = false,
  11. bool? isError = false,
  12. bool? isFullWidth = false,
  13. bool? isFilled = false,
  14. Color? filledColor = Colors.white,
  15. String? errorMessage = '',
  16. double maxTextFieldHeight = 46.0,
  17. String? tooltipMessage,
  18. Widget? tooltipIcon,
  19. Color? tooltipIconColor,
})

Implementation

const S360fDropDown({
  required this.label,
  required this.onChanged,
  required List<String> items,
  super.key,
  this.value,
  this.hint = 'Select an option',
  this.itemWidth,
  this.height,
  this.readOnly = false,
  this.isRequired = false,
  this.isError = false,
  this.isFullWidth = false,
  this.isFilled = false,
  this.filledColor = Colors.white,
  this.errorMessage = '',
  this.maxTextFieldHeight = 46.0,
  this.tooltipMessage,
  this.tooltipIcon,
  this.tooltipIconColor,
}) : stringItems = items,
     dropdownItems = null;