InternalSinglePicker<T> constructor
const
InternalSinglePicker<T> ({
- required List<
PickerItem< options,T> > - required void onChanged(
- PickerItem<
T> ?
- PickerItem<
- required dynamic value,
- Key? key,
- Widget? title,
- String? titleText,
- bool filterable = false,
- Future<
void> ? onRequest()?, - void onSelected()?,
InternalSinglePicker 内部单选选择器组件
Implementation
const InternalSinglePicker({
required this.options,
required this.onChanged,
required this.value,
super.key,
this.title,
this.titleText,
this.filterable = false,
this.onRequest,
this.onSelected,
}) : assert((title != null && titleText == null) || (title == null && titleText != null), '必须传入 title 或 titleText');