resetFor method

void resetFor(
  1. String entryId
)

Forgets everything the previous entry declared.

Knobs are discovered by running the demo, so the set is only ever as right as the last build. Carrying one entry's controls into the next would leave a panel offering knobs nothing reads.

Implementation

void resetFor(String entryId) {
  if (_entryId == entryId) return;
  _entryId = entryId;
  editable.dispose();
  editable.knobs.clear();
  _declared++;
  // No bump: this runs from the widget's own init or update, and the demo
  // below is about to build anyway.
}