ModernSwitch constructor

const ModernSwitch({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool> onChanged,
  4. bool isDarkMode = true,
  5. String? semanticLabel,
})

Implementation

const ModernSwitch({
  super.key,
  required this.value,
  required this.onChanged,
  this.isDarkMode = true,
  this.semanticLabel,
});