radioListTile<T> function
Widget
radioListTile<
T>({ - required T value,
- required T groupValue,
- required String title,
- required String subTitle,
- required dynamic onChanged(
- T?
)?,
- bool toggleable = true,
})
Implementation
Widget radioListTile<T>({
required final T value,
required final T groupValue,
required final String title,
required final String subTitle,
required final Function(T?)? onChanged,
final bool toggleable = true,
}) =>
RadioListTile<T>(
toggleable: toggleable,
controlAffinity: ListTileControlAffinity.leading,
title: Text(title),
subtitle: FittedBox(alignment: Alignment.centerRight, fit: BoxFit.scaleDown, child: Text(subTitle)),
groupValue: groupValue,
value: value,
onChanged: onChanged,
).container(
radius: 20,
borderColor: Theme.of(navigatorKey.currentContext!).colorScheme.onSurface.withValues(alpha: 0.2),
margin: const EdgeInsets.symmetric(horizontal: 20),
);