substitute method

  1. @override
Color substitute(
  1. String? id,
  2. String elementName,
  3. String attributeName,
  4. Color color,
)
override

Returns a new color to use in place of color during SVG parsing.

The SVG parser will call this method every time it parses a color

Implementation

@override
Color substitute(String? id, String elementName, String attributeName, Color color) {
  return _overrides[color] ?? color;
}