SelectItem<T> constructor

const SelectItem<T>({
  1. required List<T> values,
  2. required ValueChanged<T> onDone,
  3. T? value,
  4. List<Widget> actions = const [],
  5. String title = 'Select Item',
  6. String getSearchString(
    1. T value
    )?,
  7. Widget getWidget(
    1. T value
    )?,
  8. bool shouldPop = true,
  9. SelectItemCallbackShortcuts<T>? getCallbackShortcuts,
  10. Key? key,
})

Create an instance.

Implementation

const SelectItem({
  required this.values,
  required this.onDone,
  this.value,
  this.actions = const [],
  this.title = 'Select Item',
  this.getSearchString,
  this.getWidget,
  this.shouldPop = true,
  this.getCallbackShortcuts,
  super.key,
});