composedImage method
In-memory composite for the send pipeline. Returns the cached renderedPreview when available (the common case — tool applies eagerly rasterise into it); otherwise waits for the render of the current edits. Null when there are no edits — callers upload input as-is.
The PNG encode + disk write that used to live here moved to
OutgoingImageFromComposite (kicked off eagerly in its
constructor), so compose pops without touching the filesystem.
Implementation
Future<ui.Image?> composedImage() async {
if (!hasEdits) return null;
if (renderedPreview != null) return renderedPreview;
await _renderPreview();
return renderedPreview;
}