CustomRadioListTile<T> constructor

const CustomRadioListTile<T>({
  1. required T value,
  2. required T groupValue,
  3. required ValueChanged<T?>? onChanged,
  4. Key? key,
  5. MouseCursor? mouseCursor,
  6. bool toggleable = false,
  7. Color? activeColor,
  8. WidgetStateProperty<Color?>? fillColor,
  9. Color? hoverColor,
  10. WidgetStateProperty<Color?>? overlayColor,
  11. double? splashRadius,
  12. MaterialTapTargetSize? materialTapTargetSize,
  13. Widget? title,
  14. Widget? subtitle,
  15. bool isThreeLine = false,
  16. bool? dense,
  17. Widget? secondary,
  18. bool selected = false,
  19. ListTileControlAffinity controlAffinity = ListTileControlAffinity.platform,
  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. bool useCupertinoCheckmarkStyle = false,
  30. String? titleText,
  31. bool block = true,
  32. bool? isRequired,
})

RadioListTile 单选列表项组件

Implementation

const CustomRadioListTile({
  required this.value,
  required this.groupValue,
  required this.onChanged,
  super.key,
  this.mouseCursor,
  this.toggleable = false,
  this.activeColor,
  this.fillColor,
  this.hoverColor,
  this.overlayColor,
  this.splashRadius,
  this.materialTapTargetSize,
  this.title,
  this.subtitle,
  this.isThreeLine = false,
  this.dense,
  this.secondary,
  this.selected = false,
  this.controlAffinity = ListTileControlAffinity.platform,
  this.autofocus = false,
  this.contentPadding,
  this.shape,
  this.tileColor,
  this.selectedTileColor,
  this.visualDensity,
  this.focusNode,
  this.onFocusChange,
  this.enableFeedback,
  this.useCupertinoCheckmarkStyle = false,
  this.titleText,
  this.block = true,
  this.isRequired,
}) : assert(
        (title != null) != (titleText != null),
        '必须设置 title 或 titleText 其中一个参数',
      );