ParallaxLayer constructor
ParallaxLayer(
- ParallaxRenderer parallaxRenderer, {
- Vector2? velocityMultiplier,
parallaxRenderer
is the representation of the renderer with data of how
the layer should behave.
velocityMultiplier
will be used to determine the velocity of the layer
by multiplying the Parallax.baseVelocity with the velocityMultiplier
.
Implementation
ParallaxLayer(
this.parallaxRenderer, {
Vector2? velocityMultiplier,
}) : velocityMultiplier = velocityMultiplier ?? Vector2.all(1.0);