ModDropDown<T> constructor

const ModDropDown<T>({
  1. Key? key,
  2. String? label,
  3. String? hint,
  4. T? value,
  5. required List<DropdownMenuItem<T>> items,
  6. ValueChanged<T?>? onChanged,
  7. bool readOnly = false,
  8. Widget? prefixIcon,
  9. Widget? suffixIcon,
  10. TextStyle? style,
  11. ModDropDownLabelPosition labelPosition = ModDropDownLabelPosition.top,
  12. String? validator(
    1. T?
    )?,
  13. String? errorText,
  14. double? width,
  15. double borderRadius = 8.0,
  16. AutovalidateMode autovalidateMode = AutovalidateMode.onUserInteraction,
  17. bool? enabled,
  18. FocusNode? focusNode,
  19. ModDropDownSize size = ModDropDownSize.md,
  20. bool hasBorder = false,
  21. Color? backgroundColor,
  22. Color? borderColor,
  23. double borderWidth = 1.0,
  24. double? fontSize,
  25. double? iconSize,
  26. bool floatingLabel = false,
  27. Color? floatingLabelBackgroundColor = Colors.transparent,
})

Implementation

const ModDropDown({
  super.key,
  this.label,
  this.hint,
  this.value,
  required this.items,
  this.onChanged,
  this.readOnly = false,
  this.prefixIcon,
  this.suffixIcon,
  this.style,
  this.labelPosition = ModDropDownLabelPosition.top,
  this.validator,
  this.errorText,
  this.width,
  this.borderRadius = 8.0,
  this.autovalidateMode = AutovalidateMode.onUserInteraction,
  this.enabled,
  this.focusNode,
  this.size = ModDropDownSize.md,
  this.hasBorder = false,
  this.backgroundColor,
  this.borderColor,
  this.borderWidth = 1.0,
  this.fontSize,
  this.iconSize,
  this.floatingLabel = false,
  this.floatingLabelBackgroundColor = Colors.transparent,
});