GradientTween constructor
GradientTween({
- Gradient? begin,
- Gradient? end,
- bool isAgressive = true,
- GradientCopyWith overrideCopyWith = spectrumCopyWith,
An interpolation between two Gradient
s.
This class specializes the interpolation of Tween<Gradient> to use Gradient.lerp and bespoke IntermediateGradients.
If needed, consider overriding IntermediateGradient._copyWith
by
providing a custom GradientCopyWith during construction as
overrideCopyWith
.
See Tween for a discussion on how to use interpolation objects.
Implementation
GradientTween({
Gradient? begin,
Gradient? end,
this.isAgressive = true,
GradientCopyWith overrideCopyWith = spectrumCopyWith,
}) : _copyWith = overrideCopyWith,
super(begin: begin, end: end);