Student Reviews
( 5 Of 5 )
1 review
Video of 49- Flutter Switch Widget (Arabic) in Flutter course by Code2Start - Mohamed Fathy Taha channel, video No. 49 free certified online
Used to toggle the on/off state of a single setting.
The switch itself does not maintain any state. Instead, when the state of the switch changes, the widget calls the onChanged callback. Most widgets that use a switch will listen for the onChanged callback and rebuild the switch with a new value to update the visual appearance of the switch.