toSVG method

SvgPicture? toSVG({
  1. int? width,
  2. int? height,
  3. double minDistanceBetweenPoints = 3,
})
inherited

Export the current content to a SVG graphic. Will return null if there are no points. width Canvas width to use height Canvas height to use minDistanceBetweenPoints Minimal distance between points to be included in svg. Used to reduce svg output size.

Implementation

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