update method

void update({
  1. bool? canvasLocked,
  2. TemporaryConnection? temporaryConnection,
})

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 disabled
  • temporaryConnection - 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;
    }
  });
}