renderTree method

void renderTree(
  1. Canvas canvas
)

Implementation

void renderTree(Canvas canvas) {
  render(canvas);
  _children?.forEach((c) => c.renderTree(canvas));

  // Any debug rendering should be rendered on top of everything
  if (debugMode) {
    renderDebugMode(canvas);
  }
}