SelectionWidget<T> constructor

const SelectionWidget<T>({
  1. Key? key,
  2. required HcPopupPropsMultiSelection<T> popupProps,
  3. List<T> defaultSelectedItems = const [],
  4. bool isMultiSelectionMode = false,
  5. List<T> items = const [],
  6. ValueChanged<List<T>>? onChanged,
  7. HcDropdownSearchOnFind<T>? asyncItems,
  8. HcDropdownSearchItemAsString<T>? itemAsString,
  9. HcDropdownSearchFilterFunction<T>? filterFn,
  10. HcDropdownSearchCompareFunction<T>? compareFn,
})

Implementation

const SelectionWidget({
  Key? key,
  required this.popupProps,
  this.defaultSelectedItems = const [],
  this.isMultiSelectionMode = false,
  this.items = const [],
  this.onChanged,
  this.asyncItems,
  this.itemAsString,
  this.filterFn,
  this.compareFn,
}) : super(key: key);