ScrollingDotsEffect constructor

const ScrollingDotsEffect({
  1. double activeStrokeWidth = 1.5,
  2. double activeDotScale = 1.3,
  3. double smallDotScale = 0.66,
  4. int maxVisibleDots = 5,
  5. bool fixedCenter = false,
  6. double offset = 16.0,
  7. double dotWidth = 16.0,
  8. double dotHeight = 16.0,
  9. double spacing = 8.0,
  10. double radius = 16,
  11. Color dotColor = Colors.grey,
  12. Color activeDotColor = Colors.indigo,
  13. double strokeWidth = 1.0,
  14. PaintingStyle paintStyle = PaintingStyle.fill,
})

Default constructor

Implementation

const ScrollingDotsEffect({
  this.activeStrokeWidth = 1.5,
  this.activeDotScale = 1.3,
  this.smallDotScale = 0.66,
  this.maxVisibleDots = 5,
  this.fixedCenter = false,
  double offset = 16.0,
  double dotWidth = 16.0,
  double dotHeight = 16.0,
  double spacing = 8.0,
  double radius = 16,
  Color dotColor = Colors.grey,
  Color activeDotColor = Colors.indigo,
  double strokeWidth = 1.0,
  PaintingStyle paintStyle = PaintingStyle.fill,
})  : assert(activeDotScale >= 0.0),
      assert(maxVisibleDots >= 5 && maxVisibleDots % 2 != 0),
      super(
        dotWidth: dotWidth,
        dotHeight: dotHeight,
        spacing: spacing,
        radius: radius,
        strokeWidth: strokeWidth,
        paintStyle: paintStyle,
        dotColor: dotColor,
        activeDotColor: activeDotColor,
      );