toSVG method

SvgPicture? toSVG({
  1. int? width,
  2. int? height,
})

Export the current content to a SVG graphic. Will return null if there are no points.

Implementation

svg.SvgPicture? toSVG({int? width, int? height}) =>
    isEmpty ? null : svg.SvgPicture.string(toRawSVG(width: width, height: height)!);