ScrollerPainterData constructor
const
ScrollerPainterData({
- ScrollDirection direction = ScrollDirection.right2Left,
- ScrollerShape shape = ScrollerShape.circles,
- required Color backgroundColor,
- required Color color,
- double shapeWidth = 24.0,
- double spaceBetweenShapes = 24.0,
- bool fadeEdges = true,
- ScrollerShapeOffset shapeOffset = ScrollerShapeOffset.none,
Creates a new ScrollerPainterData object.
A scroller background is a background that has shapes that move across the screen in a certain direction.
Implementation
const ScrollerPainterData({
this.direction = ScrollDirection.right2Left,
this.shape = ScrollerShape.circles,
required this.backgroundColor,
required this.color,
this.shapeWidth = 24.0,
this.spaceBetweenShapes = 24.0,
this.fadeEdges = true,
this.shapeOffset = ScrollerShapeOffset.none,
}) : assert(shapeWidth > 0.0),
assert(spaceBetweenShapes >= 0.0);