ListTile constructor
const
ListTile({
- Key? key,
- Widget? title,
- Widget? subtitle,
- Widget? leading,
- Widget? trailing,
- VoidCallback? onTap,
- VoidCallback? onLongPress,
- bool enabled = true,
- bool dense = false,
- bool selected = false,
- Color? selectedColor,
- Color? backgroundColor,
- EdgeInsetsGeometry? padding,
- EdgeInsetsGeometry? contentPadding,
- Color? iconColor,
- Color? textColor,
- ShapeBorder? shape,
- TextStyle? titleStyle,
- TextStyle? subtitleStyle,
- bool showDivider = false,
- 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,
});