copyGradient method

void copyGradient (
  1. GradientColor node,
  2. ActorArtboard resetArtboard
)

Implementation

void copyGradient(GradientColor node, ActorArtboard resetArtboard) {
  copyPaint(node, resetArtboard);
  _colorStops = Float32List.fromList(node._colorStops);
  Vec2D.copy(_start, node._start);
  Vec2D.copy(_end, node._end);
  opacity = node.opacity;
}