CustomSwitch constructor

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

Implementation

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