raw method

void raw(
  1. RawProjectMutation mutation
)

Registers a raw mutation against the compiled FFProject.

Raw mutations run after the typed DSL app has been compiled but before the final push. They are executed on every rerun, so the mutation itself must be idempotent or explicitly rerun-safe. Prefer typed DSL APIs whenever possible, and reserve this escape hatch for product gaps that are not yet modeled publicly.

Example:

app.raw((project) {
  project.name = 'PatchedName';
});

Implementation

void raw(RawProjectMutation mutation) {
  _rawMutations.add(mutation);
}