SelectedList<T> constructor

const SelectedList<T>({
  1. Key? key,
  2. required List<SelectedListItem<T>> items,
  3. T? selectedValue,
  4. ValueChanged<T>? onSelectionChanged,
  5. double itemHeight = 80.0,
  6. double borderRadius = 12.0,
  7. EdgeInsets itemPadding = const EdgeInsets.all(16.0),
  8. EdgeInsets listPadding = const EdgeInsets.all(8.0),
  9. double spacing = 8.0,
  10. Color? selectedBorderColor,
  11. Color? selectedBackgroundColor,
  12. Color? hoverBorderColor,
  13. Color? hoverBackgroundColor,
  14. Color? defaultBorderColor,
  15. Color? defaultBackgroundColor,
  16. TextStyle? titleStyle,
  17. TextStyle? subtitleStyle,
  18. double iconSize = 24.0,
  19. EdgeInsets iconPadding = const EdgeInsets.only(right: 12.0),
})

Implementation

const SelectedList({
  super.key,
  required this.items,
  this.selectedValue,
  this.onSelectionChanged,
  this.itemHeight = 80.0,
  this.borderRadius = 12.0,
  this.itemPadding = const EdgeInsets.all(16.0),
  this.listPadding = const EdgeInsets.all(8.0),
  this.spacing = 8.0,
  this.selectedBorderColor,
  this.selectedBackgroundColor,
  this.hoverBorderColor,
  this.hoverBackgroundColor,
  this.defaultBorderColor,
  this.defaultBackgroundColor,
  this.titleStyle,
  this.subtitleStyle,
  this.iconSize = 24.0,
  this.iconPadding = const EdgeInsets.only(right: 12.0),
});