build method
Builds the radio cards interface as a StatelessWidget.
Constructs a RadioGroup to manage selection state, containing a Row with MainAxisAlignment.center and CrossAxisAlignment.center for centered layout. Maps each item in items to a RadioCard using the builder function, wrapped in PaddingHorizontal for consistent spacing.
On selection change, invokes onChanged with the new value. Returns the complete widget tree for integration into Arcane UI flows, such as within Section or form layouts.
Implementation
@override
Widget build(BuildContext context) => RadioGroup<T>(
value: value,
onChanged: (v) => onChanged(v),
child: Row(
mainAxisAlignment: MainAxisAlignment.center,
crossAxisAlignment: CrossAxisAlignment.center,
mainAxisSize: MainAxisSize.min,
children: items
.map((item) => PaddingHorizontal(
padding: 4,
child: RadioCard(
value: item,
child: builder(item),
)))
.toList(),
),
);