ToggleStyle constructor

const ToggleStyle({
  1. Color? indicatorColor,
  2. Gradient? indicatorGradient,
  3. Color? backgroundColor,
  4. Gradient? backgroundGradient,
  5. Color? borderColor,
  6. BorderRadiusGeometry? borderRadius,
  7. BorderRadiusGeometry? indicatorBorderRadius,
  8. BoxBorder? indicatorBorder,
  9. List<BoxShadow>? indicatorBoxShadow,
  10. List<BoxShadow>? boxShadow,
})

Default constructor for ToggleStyle.

If you want to disable the animation of single properties, you can use _CustomToggleStyle for this purpose.

Implementation

const ToggleStyle({
  this.indicatorColor,
  this.indicatorGradient,
  this.backgroundColor,
  this.backgroundGradient,
  this.borderColor,
  this.borderRadius,
  this.indicatorBorderRadius,
  this.indicatorBorder,
  this.indicatorBoxShadow,
  this.boxShadow,
}) : super._();