listViewOfRadioButton method

YYDialog listViewOfRadioButton({
  1. required List<RadioItem> items,
  2. double? height,
  3. Color? color,
  4. Color? activeColor,
  5. int? intialValue,
  6. dynamic onClickItemListener(
    1. int?
    )?,
})

Implementation

YYDialog listViewOfRadioButton({
  required List<RadioItem> items,
  double? height,
  Color? color,
  Color? activeColor,
  int? intialValue,
  Function(int?)? onClickItemListener,
}) {
  Size size = MediaQuery.of(context!).size;
  return this.widget(
    Container(
      height: height,
      constraints: BoxConstraints(
        minHeight: size.height * .1,
        minWidth: size.width * .1,
        maxHeight: size.height * .5,
      ),
      child: YYRadioListTile(
        items: items,
        intialValue: intialValue,
        color: color,
        activeColor: activeColor,
        onChanged: onClickItemListener,
      ),
    ),
  );
}