ParallaxSpec constructor

const ParallaxSpec({
  1. bool enabled = true,
  2. double amount = 0.15,
  3. double? endExtent,
})

Creates an object that defines a parallax effect.

Implementation

const ParallaxSpec({
  this.enabled = true,
  this.amount = 0.15,
  this.endExtent,
}) : assert(amount >= 0.0 && amount <= 1.0);