RadioGroup<T> constructor
const
RadioGroup<T> ({
- Key? key,
- required List<
T> items, - required ValueChanged onChanged,
- T? selectedItem,
- bool disabled = false,
- Axis scrollDirection = Axis.vertical,
- required Widget? labelBuilder(),
- ScrollPhysics? scrollPhysics,
- bool shrinkWrap = false,
- Color? activeColor,
- 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);