XSelect constructor

const XSelect({
  1. Key? key,
  2. required List options,
  3. dynamic value,
  4. String hintText = "请选择",
  5. bool disabled = false,
  6. String label = "",
  7. double fontSize = 12,
  8. FontWeight fontWeight = FontWeight.normal,
  9. dynamic defaultValue,
  10. required ValueChanged onChanged,
  11. Widget? suffixWidget,
})

Implementation

const XSelect({
  super.key,
  required this.options,
  this.value,
  this.hintText = "请选择",
  this.disabled = false,
  this.label = "",
  this.fontSize = 12,
  this.fontWeight = FontWeight.normal,
  this.defaultValue,
  required this.onChanged,
  this.suffixWidget,
});