ParallaxSpec class
A ParallaxSpec to create a parallax effect.
The parallax effect is an effect that appears when different layers of backgrounds
are moved at different speeds and thereby create the effect of motion and depth. By moving
the SlidingSheet faster than the body
the depth effect is achieved.
Constructors
- ParallaxSpec({bool enabled = true, double amount = 0.15, double? endExtent})
-
Creates an object that defines a parallax effect.
const
Properties
- amount → double
-
A fractional (
0..1
) value that determines the intensity of the parallax effect.final - enabled → bool
-
If true, the parallax effect will be applied
to the body of the SlidingSheet.
final
- endExtent → double?
-
The parallax effect will be applied between
minExtent..endExtent
where the minExtent is defined by the lowest snap in thesnappings
array on the SnapSpec.final - hashCode → int
-
The hash code for this object.
read-onlyoverride
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object o) → bool -
The equality operator.
override