CupertinoListTile constructor

const CupertinoListTile({
  1. Key? key,
  2. Widget? leading,
  3. Widget? title,
  4. Widget? subtitle,
  5. Widget? trailing,
  6. bool isThreeLine = false,
  7. bool? dense,
  8. EdgeInsetsGeometry? contentPadding,
  9. bool enabled = true,
  10. GestureTapCallback? onTap,
  11. GestureLongPressCallback? onLongPress,
  12. MouseCursor? mouseCursor,
  13. bool selected = false,
  14. ShapeBorder? border,
  15. Color pressColor = CupertinoColors.systemFill,
  16. Color? focusColor,
  17. Color? hoverColor,
  18. FocusNode? focusNode,
  19. bool autofocus = false,
})

Creates a list tile.

Implementation

const CupertinoListTile({
  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.mouseCursor,
  this.selected = false,
  this.border,
  this.pressColor = CupertinoColors.systemFill,
  this.focusColor,
  this.hoverColor,
  this.focusNode,
  this.autofocus = false,
})  : assert(!isThreeLine || subtitle != null),
      super(key: key);