transformed method
Transforms (scales/translates/etc.) this RoundedPolygon with the given
PointTransformer and returns a new RoundedPolygon. This is a low
level API and there should be more platform idiomatic ways to transform
a RoundedPolygon provided by the platform specific wrapper.
f is the PointTransformer used to transform this RoundedPolygon.
Implementation
RoundedPolygon transformed(PointTransformer f) {
final center = this.center.transformed(f);
return RoundedPolygon._(
[
for (var i = 0; i < features.length; i++) features[i].transformed(f),
],
center,
);
}