CustomSwitch.normal constructor

const CustomSwitch.normal({
  1. Key? key,
  2. required bool value,
  3. ValueChanged<bool>? onChanged,
  4. double width = 48,
  5. double height = 24,
  6. double thumbSize = 20,
  7. double spacingOfThumbTrack = 4,
  8. Color? activeBorderColor,
  9. Color? inactiveBorderColor,
})

Implementation

const CustomSwitch.normal({
  Key? key,
  required this.value,
  this.onChanged,
  this.width = 48,
  this.height = 24,
  this.thumbSize = 20, // this.activeTrackColor,
  // this.inactiveTrackColor,
  // this.activeThumbColor,
  // this.inactiveThumbColor,
  this.spacingOfThumbTrack = 4,
  this.activeBorderColor,
  this.inactiveBorderColor,
}) : super(key: key);