ModeSwitch constructor

const ModeSwitch({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool> onChanged,
  4. required double height,
  5. Color activeThumbColor = Colors.white,
  6. Image? activeThumbImage,
  7. Color inactiveThumbColor = Colors.white,
  8. Image? inactiveThumbImage,
})

Implementation

const ModeSwitch({
  Key? key,
  required this.value,
  required this.onChanged,
  required this.height,
  this.activeThumbColor = Colors.white,
  this.activeThumbImage,
  this.inactiveThumbColor = Colors.white,
  this.inactiveThumbImage,
}) : super(key: key);