onListTile method

Widget onListTile({
  1. Widget? leading,
  2. Widget? title,
  3. Widget? subtitle,
  4. Widget? trailing,
  5. bool? isThreeLine,
  6. bool? dense,
  7. EdgeInsetsGeometry? contentPadding,
  8. bool? enabled,
  9. GestureTapCallback? tap,
  10. GestureLongPressCallback? longPress,
  11. bool? selected,
})

Implementation

Widget onListTile({
  Widget? leading,
  Widget? title,
  Widget? subtitle,
  Widget? trailing,
  bool? isThreeLine,
  bool? dense,
  EdgeInsetsGeometry? contentPadding,
  bool? enabled,
  GestureTapCallback? tap,
  GestureLongPressCallback? longPress,
  bool? selected,
}) {
  this.leading = leading ?? this.leading;
  this.title = title ?? this.title;
  this.subtitle = subtitle ?? this.subtitle;
  this.trailing = trailing ?? this.trailing;
  this.isThreeLine = isThreeLine ?? this.isThreeLine;
  this.dense = dense ?? this.dense;
  this.contentPadding = contentPadding ?? this.contentPadding;
  this.enabled = enabled ?? this.enabled;
  this.tap = tap ?? this.tap;
  this.longPress = longPress ?? this.longPress;
  this.selected = selected ?? this.selected;
  return listTile;
}