BaseSwitchButton constructor

const BaseSwitchButton({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool>? onChanged,
  4. required Size size,
  5. Color thumbColor = Colors.white,
  6. Color? trackColor,
  7. Color borderColor = const Color(0xffeeeeee),
  8. bool enabled = false,
})

Implementation

const BaseSwitchButton({
  Key? key,
  required this.value,
  required this.onChanged,
  required this.size,
  this.thumbColor = Colors.white,
  this.trackColor,
  this.borderColor = const Color(0xffeeeeee),
  this.enabled = false,
}) : super(key: key);