RadioButton
A radio button is a component that allows users to select one option from a set. Use radio buttons for exclusive selection, if you think that the user needs to see all available options side-by-side.

States
The radio button can be in different states that can be toggled with the isEnabled and hasError parameters.
Disabled

Error

Parameters
Whether the radio button is selected or not.
The Lambda to be invoked when the radio button is clicked.
Whether the radio button is enabled or not. Defaults to true.
Whether the radio button is in an error state or not. Defaults to false.
An optional hoisted MutableInteractionSource for observing and emitting Interactions for the radio button. You can use this to change the radio button's appearance or preview the radio button in different states. Defaults to a remembered MutableInteractionSource.