PrismSwitch constructor

const PrismSwitch({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool>? onChanged,
  4. required String title,
  5. String? subtitle,
  6. IconData? icon,
  7. bool enabled = true,
})

Creates a switch.

Implementation

const PrismSwitch({
  super.key,
  required this.value,
  required this.onChanged,
  required this.title,
  this.subtitle,
  this.icon,
  this.enabled = true,
});