ToggleCard constructor

const ToggleCard({
  1. Key? key,
  2. required String title,
  3. String? subtitle,
  4. IconData? icon,
  5. required bool value,
  6. required ValueChanged<bool>? onChanged,
  7. ToggleVariant variant = ToggleVariant.switchToggle,
  8. 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,
});