const
LabeledRadio<T>(- {Key? key,
- required String label,
- MainAxisSize mainAxisSize = MainAxisSize.min,
- EdgeInsets? padding,
- double gap = 0.0,
- double? labelFontSize,
- FontWeight? labelFontWeight,
- Color? labelColor,
- Color? labelCheckColor,
- TextStyle? labelStyle,
- bool? labelSoftWrap,
- TextOverflow? labelOverflow,
- int? labelMaxLines,
- TextWidthBasis? labelTextWidthBasis,
- required T value,
- required T? groupValue,
- required ValueChanged<T?>? onChanged,
- MouseCursor? mouseCursor,
- bool toggleable = false,
- Color? activeColor,
- MaterialStateProperty<Color?>? fillColor,
- Color? focusColor,
- Color? hoverColor,
- MaterialStateProperty<Color?>? overlayColor,
- double? splashRadius,
- MaterialTapTargetSize? materialTapTargetSize,
- VisualDensity? visualDensity,
- FocusNode? focusNode,
- bool autofocus = false}
)
Implementation
const LabeledRadio({
Key? key,
required this.label,
this.mainAxisSize = MainAxisSize.min,
this.padding,
this.gap = 0.0,
this.labelFontSize,
this.labelFontWeight,
this.labelColor,
this.labelCheckColor,
this.labelStyle,
this.labelSoftWrap,
this.labelOverflow,
this.labelMaxLines,
this.labelTextWidthBasis,
required this.value,
required this.groupValue,
required this.onChanged,
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,
}) : color = value == groupValue ? labelCheckColor: labelColor,
super(key: key);