ListDataTileStyle constructor
const
ListDataTileStyle({
- Color? backgroundColor,
- Color? foregroundColor,
- Color? evenBackgroundColor,
- Color? evenForegroundColor,
- Color? hoverBackgroundColor,
- Color? evenHoverBackgroundColor,
- @Default.new(SelectedTileColor.empty) SelectedTileColor selectedColor,
- TextStyle? textStyle,
- Widget? trailingIcon,
- @Default.new(true) bool withCheckboxIcon,
- Widget? checkboxIcon,
- Widget? selectedCheckboxIcon,
A factory method that creates a ListDataTileStyle object.
The parameters of this method are as follows:
backgroundColor: the background color of the list tile.foregroundColor: the foreground color of the list tile.evenBackgroundColor: the background color of the list tile at even indices.evenForegroundColor: the foreground color of the list tile at even indices.hoverBackgroundColor: the background color of the list tile when hovered.evenHoverBackgroundColor: the background color of the list tile at even indices when hovered.selectedColor: the color of the selected list tile.textStyle: the text style of the list tile.trailingIcon: the trailing icon of the list tile.withCheckboxIcon: whether to show the checkbox icon of the list tile.checkboxIcon: the checkbox icon of the list tile.selectedCheckboxIcon: the selected checkbox icon of the list tile.
Implementation
const factory ListDataTileStyle({
Color? backgroundColor,
Color? foregroundColor,
Color? evenBackgroundColor,
Color? evenForegroundColor,
Color? hoverBackgroundColor,
Color? evenHoverBackgroundColor,
@Default(SelectedTileColor.empty) SelectedTileColor selectedColor,
TextStyle? textStyle,
Widget? trailingIcon,
@Default(true) bool withCheckboxIcon,
Widget? checkboxIcon,
Widget? selectedCheckboxIcon,
}) = _ListDataTileStyle;