ListTile constructor
const
ListTile({
- Key? key,
- Widget? leading,
- Widget? title,
- Widget? subtitle,
- Widget? trailing,
- bool isThreeLine = false,
- bool? dense = false,
- EdgeInsetsGeometry? contentPadding,
- bool enabled = true,
- GestureTapCallback? onTap,
- GestureLongPressCallback? onLongPress,
- MouseCursor? mouseCursor,
- bool selected = false,
- Color? focusColor,
- Color? hoverColor,
- Color? tileColor,
- Color? selectedTileColor,
- FocusNode? focusNode,
- bool autofocus = false,
- ShapeBorder? shape,
- Clip clipBehavior = Clip.none,
- VisualDensity? visualDensity,
- bool enableFeedback = true,
- double? horizontalTitleGap,
- double? minVerticalPadding,
- double? minLeadingWidth,
Implementation
const ListTile({
super.key,
this.leading,
this.title,
this.subtitle,
this.trailing,
this.isThreeLine = false,
this.dense = false,
this.contentPadding,
this.enabled = true,
this.onTap,
this.onLongPress,
this.mouseCursor,
this.selected = false,
this.focusColor,
this.hoverColor,
this.tileColor,
this.selectedTileColor,
this.focusNode,
this.autofocus = false,
this.shape,
this.clipBehavior = Clip.none,
this.visualDensity,
this.enableFeedback = true,
this.horizontalTitleGap,
this.minVerticalPadding,
this.minLeadingWidth,
});