Parallax constructor
Parallax(
- List<
ParallaxLayer> layers, { - Vector2? size,
- Vector2? baseVelocity,
Implementation
Parallax(
this.layers, {
Vector2? size,
Vector2? baseVelocity,
}) {
this.baseVelocity = baseVelocity ?? Vector2.zero();
if (size != null) {
resize(size);
}
}