render method

  1. @mustCallSuper
void render(
  1. Canvas canvas, {
  2. double x = 0.0,
  3. double y = 0.0,
})

Implementation

@mustCallSuper
void render(Canvas canvas, {double x = 0.0, double y = 0.0}) {
  if (_picture == null) {
    return;
  }

  canvas.save();
  canvas.translate(x, y);

  preProcessors.forEach((p) => p.process(_picture!, canvas));
  canvas.drawPicture(_picture!);
  postProcessors.forEach((p) => p.process(_picture!, canvas));
  canvas.restore();
}