CustomRadio<T> constructor
const
CustomRadio<T> ({
- required T value,
- required T? groupValue,
- required ValueChanged<
T> ? onChanged, - Key? key,
- MouseCursor? mouseCursor,
- bool toggleable = false,
- Color? activeColor,
- WidgetStateProperty<
Color?> ? fillColor, - Color? focusColor,
- Color? hoverColor,
- WidgetStateProperty<
Color?> ? overlayColor, - double? splashRadius,
- MaterialTapTargetSize? materialTapTargetSize,
- VisualDensity? visualDensity,
- FocusNode? focusNode,
- bool autofocus = false,
- String? titleText,
- Widget? title,
Radio 单选框组件
Implementation
const CustomRadio({
required this.value,
required this.groupValue,
required this.onChanged,
super.key,
this.mouseCursor,
this.toggleable = false,
this.activeColor,
this.fillColor,
this.focusColor,
this.hoverColor,
this.overlayColor,
this.splashRadius,
this.materialTapTargetSize,
this.visualDensity,
this.focusNode,
this.autofocus = false,
this.titleText,
this.title,
});