moveTo method

dynamic moveTo(
  1. num x,
  2. num y
)

Implementation

moveTo(num x, num y) {
  this.commands.add({
    "type": 'M',
    "x": x,
    "y": y
  });
}