transformed method

Path transformed(
  1. AffineMatrix matrix
)

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,
  );
}