renderTree method
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);
}
}