CustomRadioListTile<T> constructor
const
CustomRadioListTile<T> ({
- required T value,
- required T groupValue,
- required ValueChanged<
T?> ? onChanged, - Key? key,
- MouseCursor? mouseCursor,
- bool toggleable = false,
- Color? activeColor,
- WidgetStateProperty<
Color?> ? fillColor, - Color? hoverColor,
- WidgetStateProperty<
Color?> ? overlayColor, - double? splashRadius,
- MaterialTapTargetSize? materialTapTargetSize,
- Widget? title,
- Widget? subtitle,
- bool isThreeLine = false,
- bool? dense,
- Widget? secondary,
- bool selected = false,
- ListTileControlAffinity controlAffinity = ListTileControlAffinity.platform,
- bool autofocus = false,
- EdgeInsetsGeometry? contentPadding,
- ShapeBorder? shape,
- Color? tileColor,
- Color? selectedTileColor,
- VisualDensity? visualDensity,
- FocusNode? focusNode,
- ValueChanged<
bool> ? onFocusChange, - bool? enableFeedback,
- bool useCupertinoCheckmarkStyle = false,
- String? titleText,
- bool block = true,
- 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 其中一个参数',
);