CustomSwitch constructor

const CustomSwitch(
  1. {Key? key,
  2. bool? value,
  3. ValueChanged<bool>? onChanged,
  4. Color? activeColor,
  5. Color inactiveColor = Colors.grey,
  6. Color activeTextColor = Colors.white70,
  7. Color inactiveTextColor = Colors.white70}
)

Implementation

const CustomSwitch(
    {Key? key,
    this.value,
    this.onChanged,
    this.activeColor,
    this.inactiveColor = Colors.grey,
    this.activeTextColor = Colors.white70,
    this.inactiveTextColor = Colors.white70})
    : super(key: key);