ParallaxImage.asset constructor

ParallaxImage.asset(
  1. String name, {
  2. required double position,
  3. double imageFactor = 0.3,
})

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,
          ));