ZetaListItem.radio constructor
Creates a ZetaListItem with a ZetaRadio in the trailing widget space.
Implementation
ZetaListItem.radio({
required dynamic value,
this.title,
this.primaryText,
this.secondaryText,
this.primaryTextStyle,
this.secondaryTextStyle,
this.leading,
this.showDivider,
dynamic groupValue,
super.key,
super.rounded,
ValueChanged<dynamic>? onChanged,
}) : trailing = ZetaRadio<dynamic>(
value: value,
groupValue: groupValue,
onChanged: onChanged,
),
onTap = (() => onChanged?.call(value)),
assert(
(title != null && primaryText == null && secondaryText == null) ||
(title == null && (primaryText != null || secondaryText != null)),
'Provide one of either title or primaryText/secondaryText',
);