update method
void
update({})
Update multiple properties at once
Implementation
void update({
bool? snapToGrid,
bool? snapAnnotationsToGrid,
double? gridSize,
double? portSnapDistance,
double? minZoom,
double? maxZoom,
bool? showMinimap,
CornerPosition? minimapPosition,
Size? minimapSize,
}) {
runInAction(() {
if (snapToGrid != null) this.snapToGrid.value = snapToGrid;
if (snapAnnotationsToGrid != null) {
this.snapAnnotationsToGrid.value = snapAnnotationsToGrid;
}
if (gridSize != null) this.gridSize.value = gridSize;
if (portSnapDistance != null) {
this.portSnapDistance.value = portSnapDistance;
}
if (minZoom != null) this.minZoom.value = minZoom;
if (maxZoom != null) this.maxZoom.value = maxZoom;
if (showMinimap != null) this.showMinimap.value = showMinimap;
if (minimapPosition != null) {
this.minimapPosition.value = minimapPosition;
}
if (minimapSize != null) this.minimapSize.value = minimapSize;
});
}