setSize method
Resizes the renderer to (width, height).
Implementation
void setSize(double width,double height) {
this.width = width;
this.height = height;
widthHalf = width/2;
heightHalf = height/2;
svg.setAttribute('viewBox','${-widthHalf} ${-heightHalf} $width $height');
svg.setAttribute('width', width.toString());
svg.setAttribute('height', height.toString());
_clipBox.min.setValues(-widthHalf, -heightHalf, double.negativeInfinity);
_clipBox.max.setValues(widthHalf, heightHalf, double.infinity );
}