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