renderToCanvas method

void renderToCanvas(
  1. Canvas canvas
)

Implementation

void renderToCanvas(Canvas canvas) {
  var commands = render();
  for (final cmd in commands) {
    canvas.drawVertices(
        cmd.vertices, rendering.BlendMode.modulate, atlas.atlasPagePaints[cmd.atlasPageIndex]);
  }
}