statesController property
The controller managing widget states (selected, hovered, focused, etc.).
This controller is either provided via SelectedButton.statesController or created automatically. It tracks and manages the button's interactive states and updates them based on user interactions and the selection value.
Implementation
late WidgetStatesController statesController;