childForSlot method
Returns the widget that is currently occupying the provided slot
.
The RenderObject configured by this class will be configured to have
the RenderObject produced by the returned Widget in the provided
slot
.
Implementation
@override
Widget? childForSlot(CustomRbSlot slot) {
switch (slot) {
case CustomRbSlot.rb:
return Radio(
value: value,
groupValue: true,
materialTapTargetSize: MaterialTapTargetSize.shrinkWrap,
onChanged: (value) {},
);
case CustomRbSlot.child:
return child;
}
}