SnapOptions constructor

const SnapOptions({
  1. bool snapToKeylines = true,
  2. bool snapToGuides = true,
  3. bool snapToGrid = true,
  4. bool snapToObjects = true,
  5. bool showBothGuidesWhenClose = false,
  6. double toleranceScreenPx = 6.0,
  7. double zoom = 1.0,
  8. double? innerDualAxisTolPx,
  9. double innerDualAxisTolFactor = 0.0,
})

Implementation

const SnapOptions({
  this.snapToKeylines = true,
  this.snapToGuides = true,
  this.snapToGrid = true,
  this.snapToObjects = true,
  this.showBothGuidesWhenClose = false,
  this.toleranceScreenPx = 6.0,
  this.zoom = 1.0,
  this.innerDualAxisTolPx,
  this.innerDualAxisTolFactor = 0.0, // 0 = disabled unless px is set
});