ListTileButton constructor

const ListTileButton({
  1. Key? key,
  2. VoidCallback? onPressed,
  3. VoidCallback? onLongPress,
  4. EdgeInsetsGeometry? margin,
  5. EdgeInsetsGeometry? padding,
  6. EdgeInsetsGeometry? contentPadding,
  7. Widget? leading,
  8. double leadingSizeFactor = 1.0,
  9. required Widget? body,
  10. Widget? subtitle,
  11. Widget? trailing,
  12. Color? backgroundColor,
  13. Color? borderColor,
  14. double borderRadius = 10,
  15. double? elevation,
  16. VisualDensity? visualDensity,
  17. ListTileTitleAlignment? bodyAlignment,
  18. double? minHeight,
})

Creates a ListTileButton with customizable content and styling.

Implementation

const ListTileButton({
  super.key,
  this.onPressed,
  this.onLongPress,
  this.margin,
  this.padding,
  this.contentPadding,
  this.leading,
  this.leadingSizeFactor = 1.0,
  required this.body,
  this.subtitle,
  this.trailing,
  this.backgroundColor,
  this.borderColor,
  this.borderRadius = 10,
  this.elevation,
  this.visualDensity,
  this.bodyAlignment,
  this.minHeight,
});