ListTile constructor

const ListTile({
  1. Key? key,
  2. Widget? leading,
  3. Widget? title,
  4. Widget? subtitle,
  5. Widget? trailing,
  6. bool isThreeLine = false,
  7. bool? dense = false,
  8. EdgeInsetsGeometry? contentPadding,
  9. bool enabled = true,
  10. GestureTapCallback? onTap,
  11. GestureLongPressCallback? onLongPress,
  12. MouseCursor? mouseCursor,
  13. bool selected = false,
  14. Color? focusColor,
  15. Color? hoverColor,
  16. Color? tileColor,
  17. Color? selectedTileColor,
  18. FocusNode? focusNode,
  19. bool autofocus = false,
  20. ShapeBorder? shape,
  21. Clip clipBehavior = Clip.none,
  22. VisualDensity? visualDensity,
  23. bool enableFeedback = true,
  24. double? horizontalTitleGap,
  25. double? minVerticalPadding,
  26. 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,
});