RadioGroup<T> constructor

const RadioGroup<T>({
  1. Key? key,
  2. required List<T> items,
  3. required ValueChanged onChanged,
  4. T? selectedItem,
  5. bool disabled = false,
  6. Axis scrollDirection = Axis.vertical,
  7. required Widget? labelBuilder(
    1. BuildContext,
    2. int
    ),
  8. ScrollPhysics? scrollPhysics,
  9. bool shrinkWrap = false,
  10. Color? activeColor,
  11. Color? fillColor,
})

This widget creates s list of radio group widget So that you can easily implement List of radio buttons Just by passing a list of String or any object.

Implementation

const RadioGroup({
  Key? key,
  required this.items,
  required this.onChanged,
  this.selectedItem,
  this.disabled = false,
  this.scrollDirection = Axis.vertical,
  required this.labelBuilder,
  this.scrollPhysics,
  this.shrinkWrap = false,
  this.activeColor,
  this.fillColor,
}) : super(key: key);