render method
Draws one moment.
Sync, and deliberately: toImageSync defers the raster the way the
film's own capture does, so the pixels are paid for once, later, in the
runAsync a batch of them is written in.
Implementation
ui.Image render(StageFrame frame) {
stage.before(frame);
_frame.value = frame;
_mounted.pump();
return _mounted.boundary.toImageSync(pixelRatio: scale);
}