RadioGroup constructor

const RadioGroup({
  1. Key? key,
  2. GroupItemsAlignment groupItemsAlignment = GroupItemsAlignment.row,
  3. required ValueChanged<int> onSelectionChanged,
  4. int defaultSelectedItem = 0,
  5. required List<Widget> children,
  6. bool textBeforeRadio = true,
  7. EdgeInsetsGeometry padding = const EdgeInsets.all(0),
  8. EdgeInsetsGeometry margin = const EdgeInsets.all(0),
  9. Color? activeColor,
  10. Color? focusColor,
  11. Color? hoverColor,
  12. bool textBelowRadio = true,
  13. RadioPriority priority = RadioPriority.textBeforeRadio,
  14. MainAxisAlignment mainAxisAlignment = MainAxisAlignment.start,
  15. 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);