RadioButton constructor

const RadioButton({
  1. Key? key,
  2. required bool checked,
  3. required ValueChanged<bool>? onChanged,
  4. RadioButtonThemeData? style,
  5. Widget? content,
  6. String? semanticLabel,
  7. FocusNode? focusNode,
  8. bool autofocus = false,
})

Creates a radio button.

Implementation

const RadioButton({
  super.key,
  required this.checked,
  required this.onChanged,
  this.style,
  this.content,
  this.semanticLabel,
  this.focusNode,
  this.autofocus = false,
});