ListDataTileStyle constructor

const ListDataTileStyle({
  1. Color? backgroundColor,
  2. Color? foregroundColor,
  3. Color? evenBackgroundColor,
  4. Color? evenForegroundColor,
  5. Color? hoverBackgroundColor,
  6. Color? evenHoverBackgroundColor,
  7. @Default.new(SelectedTileColor.empty) SelectedTileColor selectedColor,
  8. TextStyle? textStyle,
  9. Widget? trailingIcon,
  10. @Default.new(true) bool withCheckboxIcon,
  11. Widget? checkboxIcon,
  12. 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;