ScrollingDotsEffect constructor
const
ScrollingDotsEffect({
- double activeStrokeWidth = 1.5,
- double activeDotScale = 1.3,
- int maxVisibleDots = 5,
- bool 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,
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,
);