PlutoColumnType.select constructor

PlutoColumnType.select(
  1. List items, {
  2. dynamic defaultValue = '',
  3. bool enableColumnFilter = false,
  4. IconData? popupIcon = Icons.arrow_drop_down,
})

Provides a selection list and sets it as a selection column.

If enableColumnFilter is true, column filtering is enabled in the selection popup.

Set the suffixIcon in the popupIcon cell. Tapping this icon will open a selection popup. The default icon is displayed, and if this value is set to null , the icon does not appear.

Implementation

factory PlutoColumnType.select(
  List<dynamic> items, {
  dynamic defaultValue = '',
  bool enableColumnFilter = false,
  IconData? popupIcon = Icons.arrow_drop_down,
}) {
  return PlutoColumnTypeSelect(
    defaultValue: defaultValue,
    items: items,
    enableColumnFilter: enableColumnFilter,
    popupIcon: popupIcon,
  );
}