XRadio<T>.custom constructor

XRadio<T>.custom({
  1. Key? key,
  2. required T value,
  3. required T groupValue,
  4. required ValueChanged<T> onChanged,
  5. required Widget? normal,
  6. required Widget? selected,
  7. Widget? disableNormal,
  8. Widget? disableSelected,
  9. Widget? hover,
  10. double width = 27,
  11. double height = 27,
  12. bool enable = true,
  13. bool toggleable = false,
  14. FocusNode? focusNode,
  15. bool autofocus = false,
})

XRadio.custom 构造函数允许用户自定义配置 normalselecteddisableNormaldisableSelected 以及 hover

Implementation

XRadio.custom({
  Key? key,
  required this.value,
  required this.groupValue,
  required this.onChanged,
  required this.normal,
  required this.selected,
  this.disableNormal,
  this.disableSelected,
  this.hover,
  this.width = 27,
  this.height = 27,
  this.enable = true,
  this.toggleable = false,
  this.focusNode,
  this.autofocus = false,
}) : super(key: key);