CustomSwitch.small constructor

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

Implementation

const CustomSwitch.small({
  Key? key,
  required this.value,
  this.onChanged,
  this.width = 32,
  this.height = 16,
  this.thumbSize = 13.5, // this.activeTrackColor,
  // this.inactiveTrackColor,
  // this.activeThumbColor,
  // this.inactiveThumbColor,
  this.spacingOfThumbTrack = 2.5,
  this.activeBorderColor,
  this.inactiveBorderColor,
}) : super(key: key);