CupertinoRadio<T> constructor

const CupertinoRadio<T>(
  1. {Key? key,
  2. required T value,
  3. required T? groupValue,
  4. required ValueChanged<T?>? onChanged,
  5. bool toggleable = false,
  6. Color? activeColor,
  7. Color? inactiveColor,
  8. Color? fillColor,
  9. Color? focusColor,
  10. FocusNode? focusNode,
  11. bool autofocus = false,
  12. bool useCheckmarkStyle = false}
)

Creates a macOS-styled radio button.

The following arguments are required:

  • value and groupValue together determine whether the radio button is selected.
  • onChanged is called when the user selects this radio button.

Implementation

const CupertinoRadio({
  super.key,
  required this.value,
  required this.groupValue,
  required this.onChanged,
  this.toggleable = false,
  this.activeColor,
  this.inactiveColor,
  this.fillColor,
  this.focusColor,
  this.focusNode,
  this.autofocus = false,
  this.useCheckmarkStyle = false,
});