RolledOutFoil constructor

const RolledOutFoil({
  1. Key? key,
  2. required Gradient gradient,
  3. required List<double> rolloutX,
  4. required List<double> rolloutY,
  5. required Widget child,
  6. required BlendMode blendMode,
  7. required bool useSensor,
  8. required Duration duration,
  9. Curve curve = Curves.linear,
})

Creates a position-animated foil effect.

The gradient parameter is the current gradient to display. The rolloutX and rolloutY parameters control the target positions of the gradient based on pointer input and/or Roll animations. The blendMode determines how the gradient is blended with the child. The useSensor parameter controls whether pointer input affects the gradient. The duration parameter sets how long position animations will take. The curve parameter defines the animation curve.

Implementation

const RolledOutFoil({
  Key? key,
  required this.gradient,
  required this.rolloutX,
  required this.rolloutY,
  required this.child,
  required this.blendMode,
  required this.useSensor,
  required Duration duration,
  Curve curve = Curves.linear,
}) : super(key: key, duration: duration, curve: curve);