RolledOutFoil constructor
const
RolledOutFoil({})
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);