fillGradient method

Apply a fill gradient to the previously drawn vector object.

Implementation

GraphicsCommandFillGradient fillGradient(GraphicsGradient gradient) {
  final command = GraphicsCommandFillGradient(gradient);
  addCommand(command);
  return command;
}