GraphicsCommandFillGradient fillGradient(GraphicsGradient gradient)

Apply a fill gradient to the previously drawn vector object.

Source

GraphicsCommandFillGradient fillGradient(GraphicsGradient gradient) {
  var command = new GraphicsCommandFillGradient(gradient);
  this.addCommand(command);
  return command;
}