Switch constructor

const Switch({
  1. Key? key,
  2. bool isSelected = false,
  3. ValueChanged<bool>? onChanged,
  4. Color? activeColor,
  5. double size = 24.0,
})

Creates a Switch toggle instance.

Implementation

const Switch({
  super.key,
  this.isSelected = false,
  this.onChanged,
  this.activeColor,
  this.size = 24.0,
});