PCanvas constructor

PCanvas(
  1. int width,
  2. int height,
  3. PCanvasPainter painter, {
  4. PCanvasPixels? initialPixels,
})

Implementation

factory PCanvas(int width, int height, PCanvasPainter painter,
    {PCanvasPixels? initialPixels}) {
  return PCanvasFactory()
      .createPCanvas(width, height, painter, initialPixels: initialPixels);
}