CustomRadio<T> constructor

const CustomRadio<T>({
  1. required T value,
  2. required T? groupValue,
  3. required ValueChanged<T>? onChanged,
  4. Key? key,
  5. MouseCursor? mouseCursor,
  6. bool toggleable = false,
  7. Color? activeColor,
  8. WidgetStateProperty<Color?>? fillColor,
  9. Color? focusColor,
  10. Color? hoverColor,
  11. WidgetStateProperty<Color?>? overlayColor,
  12. double? splashRadius,
  13. MaterialTapTargetSize? materialTapTargetSize,
  14. VisualDensity? visualDensity,
  15. FocusNode? focusNode,
  16. bool autofocus = false,
  17. String? titleText,
  18. 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,
});