debugDraw method
- DebugDraw draw
Draws to the debug overlay every frame, in the same space as draw.
Discarded by the next build. Only valid inside this node's own build.
Implementation
@nonVirtual
void debugDraw(DebugDraw draw) {
assert(
identical(_building, this),
'debugDraw() is only available inside this node\'s own build.',
);
(_debugDraws ??= []).add(draw);
}