ZetaAccordionItem constructor
Constructs a ZetaAccordionItem.
Implementation
const ZetaAccordionItem({
required this.title,
this.child,
this.isExpanded = false,
this.isSelected = false,
this.isSelectable = false,
this.isNavigation = false,
this.header,
this.onTap,
super.key,
super.rounded,
this.expandSemanticLabel = 'Expand accordion',
this.collapseSemanticLabel = 'Collapse accordion',
}) : assert(
!(isSelectable && isNavigation),
'Selectable items cannot be navigation items. Please use either selectable or navigation.',
),
assert((isNavigation && child == null) || !isNavigation, 'Navigation items must not have a child widget');