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 commands = <PathCommand>[];
  for (final PathCommand command in _commands) {
    commands.add(command.transformed(matrix));
  }
  return Path(commands: commands, fillType: fillType);
}