GradientPacket constructor

const GradientPacket(
  1. Gradient a,
  2. Gradient b,
  3. double t
)

If a list of colors and list of stops makes a PrimitiveGradient, does this GradientPacket constitute a supergradient?

This Packet holds onto two Gradients 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);