ParallaxImage.asset constructor
Implementation
ParallaxImage.asset(String name,
{required double position, this.imageFactor: 0.3})
: image = Image.asset(name,
fit: BoxFit.cover,
alignment: FractionalOffset(
0.5 + position * imageFactor,
0.5,
));