CupertinoRadio<T> constructor

const CupertinoRadio<T>({
  1. Key? key,
  2. required T value,
  3. @Deprecated('Use a RadioGroup ancestor to manage group value instead. ' 'This feature was deprecated after v3.32.0-0.0.pre.') T? groupValue,
  4. @Deprecated('Use RadioGroup to handle value change instead. ' 'This feature was deprecated after v3.32.0-0.0.pre.') 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,
  14. bool? enabled,
  15. RadioGroupRegistry<T>? groupRegistry,
})

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,
  @Deprecated(
    'Use a RadioGroup ancestor to manage group value instead. '
    'This feature was deprecated after v3.32.0-0.0.pre.',
  )
  this.groupValue,
  @Deprecated(
    'Use RadioGroup to handle value change instead. '
    'This feature was deprecated after v3.32.0-0.0.pre.',
  )
  this.onChanged,
  this.mouseCursor,
  this.toggleable = false,
  this.activeColor,
  this.inactiveColor,
  this.fillColor,
  this.focusColor,
  this.focusNode,
  this.autofocus = false,
  this.useCheckmarkStyle = false,
  this.enabled,
  this.groupRegistry,
});