SvgShape class

A single flattened, ready-to-paint shape of an SvgDrawing.

The path is already expressed in the drawing's own (view box) coordinate space: every ancestor transform has been baked in at parse time, so painting is a flat loop with no state to unwind.

Annotations

Constructors

SvgShape({required Path path, required Color color, List<Path> clips = const <ui.Path>[], bool followsCurrentColor = false})
Creates a flattened shape.
const

Properties

clips List<Path>
Clip outlines to intersect before filling, in view box coordinates.
final
color Color
The resolved fill color, including fill-opacity and inherited opacity.
final
followsCurrentColor bool
Whether this shape inherited its fill — because it declared fill="currentColor", or declared no fill at all.
final
hashCode int
The hash code for this object.
no setterinherited
path Path
The outline to fill, in view box coordinates.
final
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