viewport property

Rect viewport

Give the viewport for this scalable image, in pixels. By default, it's determined by the parameters in the original asset, but see also ScalableImage.withNewViewport. If the original SVG asset didn't define a width and height, they will be calculated the first time the viewport is requested.

Implementation

Rect get viewport;