OudsListItem constructor

const OudsListItem({
  1. Key? key,
  2. required String label,
  3. OudsListItemSize size = OudsListItemSize.defaultSize,
  4. OudsListItemContentAlignment contentAlignment = OudsListItemDefaults.contentAlignment,
  5. String? overline,
  6. String? extraLabel,
  7. String? description,
  8. OudsListItemLeading? leading,
  9. OudsListItemTrailing? trailing,
  10. bool divider = true,
  11. bool background = false,
  12. OudsListItemDecoration? decoration,
  13. String? helperText,
  14. bool boldLabel = false,
  15. bool enable = true,
  16. VoidCallback? onTap,
  17. OudsListItemIndicator indicator = OudsListItemDefaults.indicator,
  18. bool card = false,
  19. bool edgeToEdge = true,
})

Creates an OUDS list item.

Implementation

const OudsListItem({
  super.key,
  required this.label,
  this.size = OudsListItemSize.defaultSize,
  this.contentAlignment = OudsListItemDefaults.contentAlignment,
  this.overline,
  this.extraLabel,
  this.description,
  this.leading,
  this.trailing,
  this.divider = true,
  this.background = false,
  this.decoration,
  this.helperText,
  this.boldLabel = false,
  this.enable = true,
  this.onTap,
  this.indicator = OudsListItemDefaults.indicator,
  this.card = false,
  this.edgeToEdge = true,
});