Even if it's a different language, the classes implement the interfaces defined by the specification (if you watch closely you can see that the first paragraph of many Dart documentation pages is taken from MDN). So, to apply the matrix you have to create a SVGTransform
instance representing that transformation. To get it, look at the transform
property: it's an animated value, so you'll need to get its baseVal
which is a list of transformations (currently empty). Now on this object you have to call the createSvgTransformFromMatrix
method and append the object returned to the transformation list.
In code should be something like this:
TransformList pathTransformList = path.transform.baseVal;
pathTransformList.appendItem(pathTransformList.createSvgTransformFromMatrix(matrix));
Since Dart implementation of TransformList
is also a List
, I think you could also use its add
method. Give a look at initialize
too.