ListTile constructor

const ListTile({Key key, Widget leading, Widget title, Widget subtitle, Widget trailing, bool isThreeLine: false, bool dense, EdgeInsetsGeometry contentPadding, bool enabled: true, GestureTapCallback onTap, GestureLongPressCallback onLongPress, bool selected: false })

Creates a list tile.

If isThreeLine is true, then subtitle must not be null.

Requires one of its ancestors to be a Material widget.

Implementation

const ListTile({
  Key key,
  this.leading,
  this.title,
  this.subtitle,
  this.trailing,
  this.isThreeLine = false,
  this.dense,
  this.contentPadding,
  this.enabled = true,
  this.onTap,
  this.onLongPress,
  this.selected = false,
}) : assert(isThreeLine != null),
     assert(enabled != null),
     assert(selected != null),
     assert(!isThreeLine || subtitle != null),
     super(key: key);