createCanvas method

Canvas createCanvas(
  1. PictureRecorder recorder
)

Create a Canvas from a PictureRecorder.

This hook enables test bindings to instrument the rendering layer.

This is used by the PaintingContext after creating a PictureRecorder using createPictureRecorder.

Implementation

Canvas createCanvas(ui.PictureRecorder recorder) => Canvas(recorder);