ZetaListItem constructor

const ZetaListItem({
  1. Widget? title,
  2. String? primaryText,
  3. String? secondaryText,
  4. TextStyle? primaryTextStyle,
  5. TextStyle? secondaryTextStyle,
  6. Widget? leading,
  7. VoidCallback? onTap,
  8. bool? showDivider,
  9. Widget? trailing,
  10. Key? key,
  11. bool? rounded,
})

Creates a ZetaListItem.

Implementation

const ZetaListItem({
  this.title,
  this.primaryText,
  this.secondaryText,
  this.primaryTextStyle,
  this.secondaryTextStyle,
  this.leading,
  this.onTap,
  this.showDivider,
  this.trailing,
  super.key,
  super.rounded,
}) : assert(
        (title != null && primaryText == null && secondaryText == null) ||
            (title == null && primaryText != null || secondaryText != null),
        'Provide one of either title or primaryText/secondaryText',
      );