RenderingStrategy enum

How the vector graphic will be rendered by the Flutter framework.

This is ultimately a performance versus fidelity tradeoff. While the raster strategy performs better than the picture strategy in most benchmarks, it can be more difficult to use. Any parent transforms that are not accounted by the application developer can cause the vector graphic to appear pixelated. The picture strategy has no such trade-off, and roughly corresponds to the previous behavior of flutter_svg

Consider using the raster strategy for very large or complicated vector graphics that are used as backdrops at fixed scales. The picture strategy makes a better default choice for icon-like vector graphics or vector graphics that have small dimensions.

Inheritance

Constructors

RenderingStrategy()
const

Values

raster → const RenderingStrategy

Draw the vector graphic as a raster.

This raster is reused from frame to frame which can significantly improve performance if the vector graphic is complicated.

picture → const RenderingStrategy

Draw the vector graphic as a picture.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<RenderingStrategy>
A constant List of the values in this enum, in order of their declaration.