XRadio<T>.custom constructor
XRadio<T>.custom ({
- Key? key,
- required T value,
- required T groupValue,
- required ValueChanged<
T> onChanged, - required Widget? normal,
- required Widget? selected,
- Widget? disableNormal,
- Widget? disableSelected,
- Widget? hover,
- double width = 27,
- double height = 27,
- bool enable = true,
- bool toggleable = false,
- FocusNode? focusNode,
- bool autofocus = false,
XRadio.custom 构造函数允许用户自定义配置 normal、selected、disableNormal、disableSelected 以及 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);