ToggleCard constructor
const
ToggleCard({
- Key? key,
- required String title,
- String? subtitle,
- IconData? icon,
- required bool value,
- required ValueChanged<
bool> ? onChanged, - ToggleVariant variant = ToggleVariant.switchToggle,
- bool enabled = true,
Implementation
const ToggleCard({
super.key,
required this.title,
this.subtitle,
this.icon,
required this.value,
required this.onChanged,
this.variant = ToggleVariant.switchToggle,
this.enabled = true,
});