LightWidget constructor

const LightWidget({
  1. Key? key,
  2. List? pages,
  3. Curve? animationCurve = Curves.ease,
  4. Duration? animationDuration = const Duration(milliseconds: 300),
  5. double? dotSize = 8.0,
  6. double? dotSpacing = 25.0,
  7. double? dotIncreaseSize = 2.0,
  8. Color? dotColor = Colors.white,
  9. Color? dotBgColor,
  10. bool showIndicator = true,
  11. double indicatorBgPadding = 20.0,
  12. BoxFit boxFit = BoxFit.cover,
  13. bool borderRadius = false,
  14. Radius? radius,
  15. double moveIndicatorFromBottom = 0.0,
  16. bool noRadiusForIndicator = false,
  17. bool overlayShadow = false,
  18. Color? overlayShadowColors,
  19. double overlayShadowSize = 0.5,
  20. bool autoplay = true,
  21. Duration autoplayDuration = const Duration(seconds: 3),
})

Implementation

const LightWidget(
    {Key? key,
    this.pages,
    this.animationCurve = Curves.ease,
    this.animationDuration = const Duration(milliseconds: 300),
    this.dotSize = 8.0,
    this.dotSpacing = 25.0,
    this.dotIncreaseSize = 2.0,
    this.dotColor = Colors.white,
    this.dotBgColor,
    this.showIndicator = true,
    this.indicatorBgPadding = 20.0,
    this.boxFit = BoxFit.cover,
    this.borderRadius = false,
    this.radius,
    this.moveIndicatorFromBottom = 0.0,
    this.noRadiusForIndicator = false,
    this.overlayShadow = false,
    this.overlayShadowColors,
    this.overlayShadowSize = 0.5,
    this.autoplay = true,
    this.autoplayDuration = const Duration(seconds: 3)})
    : assert(pages != null),
      assert(animationCurve != null),
      assert(animationDuration != null),
      assert(dotSize != null),
      assert(dotSpacing != null),
      assert(dotIncreaseSize != null),
      assert(dotColor != null),
      assert(animationCurve != Curves.easeInBack,
          'Do not use Curves.easeInBack it caused animate failed!'),
      super(key: key);