AnimatedSwitchmark constructor

const AnimatedSwitchmark({
  1. Key? key,
  2. bool? value,
  3. double? thumbInset,
  4. Color? trackBorderColor,
  5. double? trackBorderWidth,
  6. BorderRadiusGeometry? trackBorderRadius,
  7. Color? trackColor,
  8. double? trackHeight,
  9. Color? trackShadow,
  10. double? trackElevation,
  11. ShapeBorder? thumbShape,
  12. Color? thumbColor,
  13. double? thumbSize,
  14. Color? thumbShadow,
  15. double? thumbElevation,
  16. Color? overlayColor,
  17. double? overlayOpacity,
  18. double? overlayRadius,
  19. Size? size,
  20. Duration duration = const Duration(milliseconds: 200),
  21. Curve curve = Curves.linear,
})

Implementation

const AnimatedSwitchmark({
  Key? key,
  this.value,
  this.thumbInset,
  this.trackBorderColor,
  this.trackBorderWidth,
  this.trackBorderRadius,
  this.trackColor,
  this.trackHeight,
  this.trackShadow,
  this.trackElevation,
  this.thumbShape,
  this.thumbColor,
  this.thumbSize,
  this.thumbShadow,
  this.thumbElevation,
  this.overlayColor,
  this.overlayOpacity,
  this.overlayRadius,
  this.size,
  Duration duration = const Duration(milliseconds: 200),
  Curve curve = Curves.linear,
}) : super(
        key: key,
        duration: duration,
        curve: curve,
      );