GradientColors constructor Null safety

const GradientColors(
  1. Color startColor,
  2. Color endColor
)

Implementation

const GradientColors(this.startColor, this.endColor)
    : assert(startColor != null),
      assert(endColor != null),
      super(ZowieColorType.gradient);