AtomicListItem constructor

const AtomicListItem({
  1. Key? key,
  2. Widget? leading,
  3. Widget? title,
  4. Widget? subtitle,
  5. Widget? trailing,
  6. VoidCallback? onTap,
  7. VoidCallback? onLongPress,
  8. bool selected = false,
  9. bool enabled = true,
  10. bool dense = false,
  11. VisualDensity? visualDensity,
  12. EdgeInsetsGeometry? contentPadding,
  13. Color? tileColor,
  14. Color? selectedTileColor,
  15. bool enableFeedback = true,
  16. double? horizontalTitleGap,
  17. double? minVerticalPadding,
  18. double? minLeadingWidth,
  19. ListTileTitleAlignment? titleAlignment,
  20. Color? splashColor,
  21. Color? focusColor,
  22. Color? hoverColor,
  23. bool autofocus = false,
  24. ShapeBorder? shape,
  25. AtomicListItemVariant variant = AtomicListItemVariant.standard,
  26. AtomicListItemSize size = AtomicListItemSize.medium,
  27. EdgeInsetsGeometry? margin,
  28. BorderRadius? borderRadius,
  29. bool showDivider = false,
  30. AtomicBadge? badge,
})

Implementation

const AtomicListItem({
  super.key,
  this.leading,
  this.title,
  this.subtitle,
  this.trailing,
  this.onTap,
  this.onLongPress,
  this.selected = false,
  this.enabled = true,
  this.dense = false,
  this.visualDensity,
  this.contentPadding,
  this.tileColor,
  this.selectedTileColor,
  this.enableFeedback = true,
  this.horizontalTitleGap,
  this.minVerticalPadding,
  this.minLeadingWidth,
  this.titleAlignment,
  this.splashColor,
  this.focusColor,
  this.hoverColor,
  this.autofocus = false,
  this.shape,
  this.variant = AtomicListItemVariant.standard,
  this.size = AtomicListItemSize.medium,
  this.margin,
  this.borderRadius,
  this.showDivider = false,
  this.badge,
});