GraphicsCommandFillPattern fillPattern(GraphicsPattern pattern)

Apply a fill pattern to the previously drawn vector object.

Source

GraphicsCommandFillPattern fillPattern(GraphicsPattern pattern) {
  var command = new GraphicsCommandFillPattern(pattern);
  this.addCommand(command);
  return command;
}