Svg constructor

Svg(
  1. PictureInfo pictureInfo, {
  2. double? pixelRatio,
})

Creates an Svg with the received pictureInfo. Default pixelRatio is the device pixel ratio.

Implementation

Svg(this.pictureInfo, {double? pixelRatio})
    : pixelRatio = pixelRatio ??
          PlatformDispatcher.instance.views.first.devicePixelRatio;