ListTile constructor

const ListTile({
  1. Key? key,
  2. Widget? title,
  3. Widget? subtitle,
  4. Widget? leading,
  5. Widget? trailing,
  6. VoidCallback? onTap,
  7. VoidCallback? onLongPress,
  8. bool enabled = true,
  9. bool dense = false,
  10. bool selected = false,
  11. Color? selectedColor,
  12. Color? backgroundColor,
  13. EdgeInsetsGeometry? padding,
  14. EdgeInsetsGeometry? contentPadding,
  15. Color? iconColor,
  16. Color? textColor,
  17. ShapeBorder? shape,
  18. TextStyle? titleStyle,
  19. TextStyle? subtitleStyle,
  20. bool showDivider = false,
  21. Color? dividerColor,
})

Implementation

const ListTile({
  super.key,
  this.title,
  this.subtitle,
  this.leading,
  this.trailing,
  this.onTap,
  this.onLongPress,
  this.enabled = true,
  this.dense = false,
  this.selected = false,
  this.selectedColor,
  this.backgroundColor,
  this.padding,
  this.contentPadding,
  this.iconColor,
  this.textColor,
  this.shape,
  this.titleStyle,
  this.subtitleStyle,
  this.showDivider = false,
  this.dividerColor,
});