hasEdits property

bool get hasEdits

True when at least one tool has been applied to an IMAGE (used by the page's submit handler to decide whether to rasterise on send). A video's crop is not rasterised — it rides videoEdit.crop to the send-time export — so this stays image-only.

Implementation

bool get hasEdits =>
    input is ImageMedia &&
    ((cropLayer?.hasAppliedEdits ?? false) ||
        (drawLayer?.hasAppliedEdits ?? false) ||
        (entityLayer?.hasAppliedEdits ?? false));