ToggleCard constructor

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