SizedPicture constructor

SizedPicture(
  1. Picture picture,
  2. int width,
  3. int height
)

picture is the showing image, it can retrieve from a svg icon, for example:

   const String rawSvg = 'your svg string';
   final DrawableRoot svgRoot = await svg.fromSvgString(rawSvg, rawSvg);
   final picture = svgRoot.toPicture()

width and height determines the size of our picture.

Implementation

SizedPicture(this.picture, this.width, this.height);