ZetaListItem.checkbox constructor
Creates a ZetaListItem with a ZetaCheckbox in the trailing widget space.
Implementation
ZetaListItem.checkbox({
super.key,
super.rounded,
required this.primaryText,
this.secondaryText,
this.leading,
this.showDivider,
bool value = false,
ValueChanged<bool>? onChanged,
bool useIndeterminate = false,
}) : trailing = ZetaCheckbox(
value: value,
onChanged: onChanged,
useIndeterminate: useIndeterminate,
rounded: rounded,
),
onTap = (() => onChanged?.call(!value));