CupertinoRadio<T> constructor

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