LabeledRadio<T> constructor

const LabeledRadio<T>({
  1. Key? key,
  2. required String label,
  3. MainAxisSize mainAxisSize = MainAxisSize.min,
  4. EdgeInsets? padding,
  5. double gap = 0.0,
  6. double? labelFontSize,
  7. FontWeight? labelFontWeight,
  8. Color? labelColor,
  9. Color? labelCheckColor,
  10. TextStyle? labelStyle,
  11. bool? labelSoftWrap,
  12. TextOverflow? labelOverflow,
  13. int? labelMaxLines,
  14. TextWidthBasis? labelTextWidthBasis,
  15. required T value,
  16. required T? groupValue,
  17. required ValueChanged<T?>? onChanged,
  18. MouseCursor? mouseCursor,
  19. bool toggleable = false,
  20. Color? activeColor,
  21. MaterialStateProperty<Color?>? fillColor,
  22. Color? focusColor,
  23. Color? hoverColor,
  24. MaterialStateProperty<Color?>? overlayColor,
  25. double? splashRadius,
  26. MaterialTapTargetSize? materialTapTargetSize,
  27. VisualDensity? visualDensity,
  28. FocusNode? focusNode,
  29. 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);