AppSwitch constructor

const AppSwitch({
  1. Key? key,
  2. required bool value,
  3. required ValueChanged<bool>? onChanged,
  4. Color? activeColor = colorOrangeRed,
  5. Color? trackColor = Colors.grey,
  6. Color? thumbColor = Colors.white,
})

Implementation

const AppSwitch(
    {Key? key,
    required super.value,
    required super.onChanged,
    super.activeColor = colorOrangeRed,
    super.trackColor = Colors.grey,
    super.thumbColor = Colors.white})
    : super(key: key);