ParallaxComponent<T extends FlameGame<World> > constructor
ParallaxComponent<T extends FlameGame<World> > ({})
Creates a component with an empty parallax which can be set later.
Implementation
ParallaxComponent({
Parallax? parallax,
super.position,
Vector2? size,
super.scale,
super.angle,
super.anchor,
super.children,
super.priority,
super.key,
}) : _parallax = parallax,
isFullscreen = size == null && !(parallax?.isSized ?? false),
super(
size: size ?? ((parallax?.isSized ?? false) ? parallax?.size : null),
);