update method
Updates multiple state properties atomically.
Only non-null parameters will be updated. This is useful for updating multiple related state properties in a single action.
Parameters:
canvasLocked- Whether canvas interactions (pan/zoom) should be disabledtemporaryConnection- New temporary connection state
Implementation
void update({bool? canvasLocked, TemporaryConnection? temporaryConnection}) {
runInAction(() {
if (canvasLocked != null) this.canvasLocked.value = canvasLocked;
if (temporaryConnection != null) {
this.temporaryConnection.value = temporaryConnection;
}
});
}