RadioButtonGroup constructor

RadioButtonGroup({
  1. Key? key,
  2. required List<String?> labels,
  3. String? picked,
  4. List<String>? disabled,
  5. void onChange(
    1. String label,
    2. int index
    )?,
  6. void onSelected(
    1. String selected
    )?,
  7. TextStyle labelStyle = const TextStyle(),
  8. Color? activeColor,
  9. GroupedButtonsOrientation orientation = GroupedButtonsOrientation.VERTICAL,
  10. Widget itemBuilder(
    1. Radio radioButton,
    2. Text label,
    3. int index
    )?,
  11. EdgeInsetsGeometry padding = EdgeInsets.zero,
  12. EdgeInsetsGeometry margin = EdgeInsets.zero,
})

Implementation

RadioButtonGroup({
  Key? key,
  required this.labels,
  this.picked,
  this.disabled,
  this.onChange,
  this.onSelected,
  this.labelStyle = const TextStyle(),
  this.activeColor,
  this.orientation = GroupedButtonsOrientation.VERTICAL,
  this.itemBuilder,
  this.padding = EdgeInsets.zero,
  this.margin = EdgeInsets.zero,
}) : super(key: key);