SelectedList<T> constructor
const
SelectedList<T> ({
- Key? key,
- required List<
SelectedListItem< items,T> > - T? selectedValue,
- ValueChanged<
T> ? onSelectionChanged, - double itemHeight = 80.0,
- double borderRadius = 12.0,
- EdgeInsets itemPadding = const EdgeInsets.all(16.0),
- EdgeInsets listPadding = const EdgeInsets.all(8.0),
- double spacing = 8.0,
- Color? selectedBorderColor,
- Color? selectedBackgroundColor,
- Color? hoverBorderColor,
- Color? hoverBackgroundColor,
- Color? defaultBorderColor,
- Color? defaultBackgroundColor,
- TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- double iconSize = 24.0,
- 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),
});