ListTile constructor
const
ListTile({
- Key? key,
- Color? tileColor,
- ShapeBorder? shape,
- Widget? leading,
- Widget? title,
- Widget? subtitle,
- bool isThreeLine = false,
- EdgeInsetsGeometry contentPadding = kDefaultContentPadding,
Implementation
const ListTile({
Key? key,
this.tileColor,
this.shape,
this.leading,
this.title,
this.subtitle,
this.isThreeLine = false,
this.contentPadding = kDefaultContentPadding,
}) : assert(
subtitle != null ? title != null : true,
'To have a subtitle, there must be a title',
),
super(key: key);