RadioListTile<T> constructor

const RadioListTile<T>({
  1. Key? key,
  2. required T value,
  3. @Deprecated('Use a RadioGroup ancestor to manage group value instead. ' 'This feature was deprecated after v3.32.0-0.0.pre.') T? groupValue,
  4. @Deprecated('Use RadioGroup to handle value change instead. ' 'This feature was deprecated after v3.32.0-0.0.pre.') ValueChanged<T?>? onChanged,
  5. MouseCursor? mouseCursor,
  6. bool toggleable = false,
  7. Color? activeColor,
  8. MaterialStateProperty<Color?>? fillColor,
  9. Color? hoverColor,
  10. MaterialStateProperty<Color?>? overlayColor,
  11. double? splashRadius,
  12. MaterialTapTargetSize? materialTapTargetSize,
  13. Widget? title,
  14. Widget? subtitle,
  15. bool? isThreeLine,
  16. bool? dense,
  17. Widget? secondary,
  18. bool selected = false,
  19. ListTileControlAffinity? controlAffinity,
  20. bool autofocus = false,
  21. EdgeInsetsGeometry? contentPadding,
  22. ShapeBorder? shape,
  23. Color? tileColor,
  24. Color? selectedTileColor,
  25. VisualDensity? visualDensity,
  26. FocusNode? focusNode,
  27. ValueChanged<bool>? onFocusChange,
  28. bool? enableFeedback,
  29. double radioScaleFactor = 1.0,
  30. ListTileTitleAlignment? titleAlignment,
  31. bool? enabled,
  32. bool internalAddSemanticForOnTap = false,
  33. WidgetStateProperty<Color?>? radioBackgroundColor,
  34. BorderSide? radioSide,
})

Creates a combination of a list tile and a radio button.

This widget typically has a RadioGroup ancestor, which takes in a RadioGroup.groupValue, and the RadioListTile under it with matching value will be selected.

value must be provided

Implementation

const RadioListTile({
  super.key,
  required this.value,
  @Deprecated(
    'Use a RadioGroup ancestor to manage group value instead. '
    'This feature was deprecated after v3.32.0-0.0.pre.',
  )
  this.groupValue,
  @Deprecated(
    'Use RadioGroup to handle value change instead. '
    'This feature was deprecated after v3.32.0-0.0.pre.',
  )
  this.onChanged,
  this.mouseCursor,
  this.toggleable = false,
  this.activeColor,
  this.fillColor,
  this.hoverColor,
  this.overlayColor,
  this.splashRadius,
  this.materialTapTargetSize,
  this.title,
  this.subtitle,
  this.isThreeLine,
  this.dense,
  this.secondary,
  this.selected = false,
  this.controlAffinity,
  this.autofocus = false,
  this.contentPadding,
  this.shape,
  this.tileColor,
  this.selectedTileColor,
  this.visualDensity,
  this.focusNode,
  this.onFocusChange,
  this.enableFeedback,
  this.radioScaleFactor = 1.0,
  this.titleAlignment,
  this.enabled,
  this.internalAddSemanticForOnTap = false,
  this.radioBackgroundColor,
  this.radioSide,
}) : _radioType = _RadioType.material,
     useCupertinoCheckmarkStyle = false,
     assert(isThreeLine != true || subtitle != null);