Switch
Toggle switches for on/off states.
Basic Usage
dart
1
2
DSwitch(checked: false)
DSwitch(checked: true)
With Label
Enable notifications
Dark mode
dart
1
DSwitch(label: 'Enable notifications', checked: true)
Disabled
dart
1
DSwitch(checked: true, disabled: true)