ZetaListItem.radio constructor

ZetaListItem.radio({
  1. required String primaryText,
  2. required dynamic value,
  3. String? secondaryText,
  4. Widget? leading,
  5. bool? showDivider,
  6. dynamic groupValue,
  7. Key? key,
  8. bool? rounded,
  9. ValueChanged? onChanged,
})

Creates a ZetaListItem with a ZetaRadio in the trailing widget space.

Implementation

ZetaListItem.radio({
  required this.primaryText,
  required dynamic value,
  this.secondaryText,
  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));