DialogSelect<T> constructor

DialogSelect<T>({
  1. required List<DialogSelectItem<T>> items,
  2. String? title,
  3. String? searchHint,
  4. void onSelect(
    1. DialogSelectItem<T> item
    )?,
  5. CmdCallback? onDismiss,
  6. int? width,
  7. int? height,
  8. List<({String description, String key})> keybinds = const [],
  9. Widget trailing(
    1. int filteredCount,
    2. int totalCount
    )?,
  10. void onHighlightChanged(
    1. DialogSelectItem<T> item
    )?,
  11. Widget emptyBuilder(
    1. String searchQuery
    )?,
  12. Key? key,
})

Implementation

DialogSelect({
  required this.items,
  this.title,
  this.searchHint,
  this.onSelect,
  this.onDismiss,
  this.width,
  this.height,
  this.keybinds = const [],
  this.trailing,
  this.onHighlightChanged,
  this.emptyBuilder,
  super.key,
});