InternalSinglePicker<T> constructor

const InternalSinglePicker<T>({
  1. required List<PickerItem<T>> options,
  2. required void onChanged(
    1. PickerItem<T>?
    ),
  3. required dynamic value,
  4. Key? key,
  5. Widget? title,
  6. String? titleText,
  7. bool filterable = false,
  8. Future<void>? onRequest()?,
  9. 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');