Crinkle constructor

const Crinkle({
  1. bool isAnimated = true,
  2. bool shouldReverse = true,
  3. double min = -2.0,
  4. double max = 2.0,
  5. Scalar scalar = Scalar.identity,
  6. Duration period = const Duration(milliseconds: 2000),
  7. TransformGradient? transform,
})

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.

animated by `Roll.crinkle`

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