XSelect constructor
const
XSelect({
- Key? key,
- required List options,
- dynamic value,
- String hintText = "请选择",
- bool disabled = false,
- String label = "",
- double fontSize = 12,
- FontWeight fontWeight = FontWeight.normal,
- dynamic defaultValue,
- required ValueChanged onChanged,
- 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,
});