ZetaDropdownListItem constructor

const ZetaDropdownListItem({
  1. Key? key,
  2. bool? rounded,
  3. required List<ZetaListItem> items,
  4. Widget? title,
  5. String? primaryText,
  6. String? secondaryText,
  7. TextStyle? primaryTextStyle,
  8. TextStyle? secondaryTextStyle,
  9. bool expanded = false,
  10. Widget? leading,
  11. bool? showDivider,
  12. String? semanticLabel,
})

Creates a new ZetaDropdownListItem

Implementation

const ZetaDropdownListItem({
  super.key,
  super.rounded,
  required this.items,
  this.title,
  this.primaryText,
  this.secondaryText,
  this.primaryTextStyle,
  this.secondaryTextStyle,
  this.expanded = false,
  this.leading,
  this.showDivider,
  this.semanticLabel,
}) : assert(
        (title != null && primaryText == null && secondaryText == null) ||
            (title == null && (primaryText != null || secondaryText != null)),
        'Provide one of either title or primaryText/secondaryText',
      );