GradientPacket constructor
If a list of colors and list of stops makes a PrimitiveGradient, does this GradientPacket constitute a supergradient?
This Packet
holds onto two Gradient
s and a t
keyframe.
When requesting any potential Gradient
property other than colors or
stops, this Packet
may be called upon and will provide the relevant
lerp at t
.
If either gradient does not have the requested property, a default value is provided as per GradientUtils.
Implementation
const GradientPacket(this.a, this.b, this.t);