render method
- Canvas canvas
Renders this node and its children to canvas.
Implementation
void render(Canvas canvas) {
renderSelf(canvas);
final children = _egg?.nodes;
if (children == null || children.isEmpty) return;
for (final child in children) {
// Rendering is recursive, so this is the only way to stop it.
// A disabled child must never have `render` called on it.
if (child._enabled) {
child.render(canvas);
}
}
}