ScrollingDotsEffect constructor

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

Default constructor

Implementation

const ScrollingDotsEffect({
  this.activeStrokeWidth = 1.5,
  this.activeDotScale = 1.3,
  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,
      );