ListTile constructor

const ListTile({
  1. Key? key,
  2. Color? tileColor,
  3. ShapeBorder? shape,
  4. Widget? leading,
  5. Widget? title,
  6. Widget? subtitle,
  7. bool isThreeLine = false,
  8. 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);