SvgGradientStop constructor

SvgGradientStop(
  1. double offset,
  2. SvgColor color,
  3. int alpha
)

Implementation

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