lerpFrom method Null safety
Linearly interpolates from another Gradient to
a is null, this must not return null. The base class implements this
by deferring to scale.
t argument represents position on the timeline, with 0.0 meaning
that the interpolation has not started, returning
a (or something
a), 1.0 meaning that the interpolation has finished,
this (or something equivalent to
this), and values in
between meaning that the interpolation is at the relevant point on the
this. The interpolation can be extrapolated
beyond 0.0 and 1.0, so negative values and values greater than 1.0 are
valid (and can easily be generated by curves such as
Instead of calling this directly, use Gradient.lerp.
@override Gradient? lerpFrom(Gradient? a, double t) => (a == null || (a is LinearShadedSteps)) ? LinearShadedSteps.lerp(a as LinearShadedSteps?, this, t) : super.lerpFrom(a, t);