Crinkle constructor
const
Crinkle({})
Provide animation to a piece of Foil
by wrapping it in a Roll
with a specified Crinkle
.
A new Roll()
by default is not animated―because its Crinkle
is
smooth―but a new Crinkle
is animated by default.
See each parameter for more information.
Implementation
const Crinkle({
this.isAnimated = true,
this.shouldReverse = true,
this.min = -2.0,
this.max = 2.0,
this.scalar = Scalar.identity,
this.period = const Duration(milliseconds: 2000),
this.transform,
});