cacheColorFilter property

bool cacheColorFilter
final

Whether to cache the picture with the colorFilter applied or not.

This value should be set to true if the same SVG will be rendered with multiple colors, but false if it will always (or almost always) be rendered with the same colorFilter.

If Svg.cacheColorFilterOverride is not null, it will override this value for all widgets, regardless of what is specified for an individual widget.

This defaults to false and must not be null.

Implementation

final bool cacheColorFilter;