Select<T> constructor
Select<T> ({
- required List<
SelectOption< options,T> > - T? value,
- ValueCmdCallback<
T> ? onChanged, - bool enabled = true,
- String placeholder = 'Select',
- ButtonSize size = ButtonSize.medium,
- ButtonVariant variant = ButtonVariant.outline,
- Style? textStyle,
- bool selectFirstWhenNull = true,
- Key? key,
Implementation
Select({
required this.options,
this.value,
this.onChanged,
this.enabled = true,
this.placeholder = 'Select',
this.size = ButtonSize.medium,
this.variant = ButtonVariant.outline,
this.textStyle,
this.selectFirstWhenNull = true,
super.key,
});