SliderView constructor

SliderView({
  1. Key? key,
  2. dynamic onChanged(
    1. bool
    )?,
  3. String textOff = "Private",
  4. String textOn = "Work",
  5. double contentSize = 9,
  6. bool? value,
  7. Color? borderColor,
  8. double? elevation = 0,
  9. Color colorOn = Colors.green,
  10. Color colorOff = Colors.red,
  11. Color inactiveColor = Colors.grey,
  12. TextStyle? labelStyle,
})

Implementation

SliderView({super.key,
  this.onChanged,
  this.textOff = "Private",
  this.textOn = "Work",
  this.contentSize = 9,
  this.value,
  this.borderColor,
  this.elevation = 0,
  this.colorOn = Colors.green,
  this.colorOff = Colors.red,
  this.inactiveColor = Colors.grey,
  this.labelStyle
}) {
  _valueNotifier.value = (value ?? false);
}