OudsSmallListItem constructor

const OudsSmallListItem({
  1. Key? key,
  2. required String label,
  3. OudsListItemContentAlignment contentAlignment = OudsListItemDefaults.contentAlignment,
  4. String? description,
  5. OudsSmallListItemLeading? leading,
  6. OudsSmallListItemTrailing? trailing,
  7. bool divider = true,
  8. bool background = false,
  9. OudsListItemDecoration? decoration,
  10. String? helperText,
  11. bool boldLabel = false,
  12. bool enable = true,
  13. VoidCallback? onTap,
  14. OudsListItemIndicator indicator = OudsListItemDefaults.indicator,
  15. bool card = false,
  16. bool edgeToEdge = true,
})

Creates a compact OUDS list item.

Implementation

const OudsSmallListItem({
  super.key,
  required this.label,
  this.contentAlignment = OudsListItemDefaults.contentAlignment,
  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,
});