ListTile constructor
ListTile({
- required Object title,
- Object? subtitle,
- Widget? leading,
- Widget? trailing,
- CmdCallback? onTap,
- bool enabled = true,
- bool selected = false,
- bool dense = false,
- EdgeInsets? padding,
- Color? background,
- Color? selectedBackground,
- Color? foreground,
- Color? selectedForeground,
- Style? titleStyle,
- Style? subtitleStyle,
- int gap = 1,
- int minLeadingWidth = 0,
- Key? key,
Creates a Material-style list tile.
title and subtitle accept either a Widget or plain text (String).
Passing strings is a convenience; widgets provide full control.
Implementation
ListTile({
required this.title,
this.subtitle,
this.leading,
this.trailing,
this.onTap,
this.enabled = true,
this.selected = false,
this.dense = false,
this.padding,
this.background,
this.selectedBackground,
this.foreground,
this.selectedForeground,
this.titleStyle,
this.subtitleStyle,
this.gap = 1,
this.minLeadingWidth = 0,
super.key,
});