SvgGradientStop(this.offset, this.color, this.alpha) { if (color is SvgGradientColor) { throw StateError('Internal error: Gradient stop cannot be gradient'); } }