RadioGroup constructor
const
RadioGroup({
- Key? key,
- GroupItemsAlignment groupItemsAlignment = GroupItemsAlignment.row,
- required ValueChanged<
int> onSelectionChanged, - int defaultSelectedItem = 0,
- required List<
Widget> children, - bool textBeforeRadio = true,
- EdgeInsetsGeometry padding = const EdgeInsets.all(0),
- EdgeInsetsGeometry margin = const EdgeInsets.all(0),
- Color? activeColor,
- Color? focusColor,
- Color? hoverColor,
- bool textBelowRadio = true,
- RadioPriority priority = RadioPriority.textBeforeRadio,
- MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
- MainAxisAlignment internMainAxisAlignment = MainAxisAlignment.start,
Implementation
const RadioGroup({
Key? key,
this.groupItemsAlignment = GroupItemsAlignment.row,
required this.onSelectionChanged,
this.defaultSelectedItem = 0,
required this.children,
this.textBeforeRadio = true,
this.padding = const EdgeInsets.all(0),
this.margin = const EdgeInsets.all(0),
this.activeColor,
this.focusColor,
this.hoverColor,
this.textBelowRadio = true,
this.priority = RadioPriority.textBeforeRadio,
this.mainAxisAlignment = MainAxisAlignment.start,
this.internMainAxisAlignment = MainAxisAlignment.start,
}) : super(key: key);