transformed method
Creates a new path whose commands and points are transformed by matrix
.
Implementation
Path transformed(AffineMatrix matrix) {
final List<PathCommand> commands = <PathCommand>[];
for (final PathCommand command in _commands) {
commands.add(command.transformed(matrix));
}
return Path(
commands: commands,
fillType: fillType,
);
}