CupertinoRadio<T> constructor
- Key? key,
- required T value,
- @Deprecated('Use a RadioGroup ancestor to manage group value instead. ' 'This feature was deprecated after v3.32.0-0.0.pre.') T? groupValue,
- @Deprecated('Use RadioGroup to handle value change instead. ' 'This feature was deprecated after v3.32.0-0.0.pre.') ValueChanged<
T?> ? onChanged, - MouseCursor? mouseCursor,
- bool toggleable = false,
- Color? activeColor,
- Color? inactiveColor,
- Color? fillColor,
- Color? focusColor,
- FocusNode? focusNode,
- bool autofocus = false,
- bool useCheckmarkStyle = false,
- bool? enabled,
- RadioGroupRegistry<
T> ? groupRegistry,
Creates a macOS-styled radio button.
The following arguments are required:
value
andgroupValue
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,
});