SwitcherButton constructor

SwitcherButton({
  1. Key? key,
  2. double size = 60.0,
  3. Color onColor = Colors.white,
  4. Color offColor = Colors.black87,
  5. bool value = false,
  6. dynamic onChange(
    1. bool value
    )?,
})

Implementation

SwitcherButton(
    {Key? key,
    this.size = 60.0,
    this.onColor = Colors.white,
    this.offColor = Colors.black87,
    this.value = false,
    this.onChange})
    : super(key: key) {
  _width = size;
  _height = size / 2;
}