MySwitch constructor

MySwitch({
  1. Key? key,
  2. bool initVal = true,
  3. ValueChanged<bool>? onChange,
  4. String textOff = 'off',
  5. String textOn = 'on',
  6. double height = 33.0,
  7. double? width,
})

Implementation

MySwitch(
    {Key? key,
    this.initVal = true,
    this.onChange,
    this.textOff = 'off',
    this.textOn = 'on',
    this.height = 33.0,
    this.width})
    : super(key: key);