RadioListTile<T>.adaptive constructor
- Key? key,
- required T value,
- required T? groupValue,
- required ValueChanged<
T?> ? onChanged, - MouseCursor? mouseCursor,
- bool toggleable = false,
- Color? activeColor,
- MaterialStateProperty<
Color?> ? fillColor, - Color? hoverColor,
- MaterialStateProperty<
Color?> ? overlayColor, - double? splashRadius,
- MaterialTapTargetSize? materialTapTargetSize,
- Widget? title,
- Widget? subtitle,
- bool isThreeLine = false,
- bool? dense,
- Widget? secondary,
- bool selected = false,
- ListTileControlAffinity? controlAffinity,
- bool autofocus = false,
- EdgeInsetsGeometry? contentPadding,
- ShapeBorder? shape,
- Color? tileColor,
- Color? selectedTileColor,
- VisualDensity? visualDensity,
- FocusNode? focusNode,
- ValueChanged<
bool> ? onFocusChange, - bool? enableFeedback,
- bool useCupertinoCheckmarkStyle = false,
- bool internalAddSemanticForOnTap = false,
Creates a combination of a list tile and a platform adaptive radio.
The checkbox uses Radio.adaptive to show a CupertinoRadio for iOS platforms, or Radio for all others.
All other properties are the same as RadioListTile.
Implementation
const RadioListTile.adaptive({
super.key,
required this.value,
required this.groupValue,
required 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 = false,
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.useCupertinoCheckmarkStyle = false,
this.internalAddSemanticForOnTap = false,
}) : _radioType = _RadioType.adaptive,
assert(!isThreeLine || subtitle != null);