GSvgShape constructor

GSvgShape(
  1. SvgData? data
)

Creates a new GSvgShape object that renders an SVG image.

The data parameter is optional. If provided, it will be used as the source of the SVG image to draw. If it's null, nothing will be drawn until a valid SvgData is assigned to this object.

Implementation

GSvgShape(SvgData? data) {
  this.data = data;
}