ShapeAdjustment constructor

const ShapeAdjustment({
  1. required String field,
  2. required String label,
  3. double step = .01,
  4. double pixelsPerStep = 4,
  5. ShapeAdjustmentHandle handle = ShapeAdjustmentHandle.diamond,
  6. DiagramPoint? position(
    1. Map<String, Object?> values
    )?,
  7. DiagramPoint? direction(
    1. Map<String, Object?> values
    )?,
  8. double? drag(
    1. Map<String, Object?> values,
    2. DiagramPoint delta,
    3. double previousValue
    )?,
  9. Iterable<double> snapStops(
    1. Map<String, Object?> values, {
    2. required bool shiftPressed,
    })?,
})

Implementation

const ShapeAdjustment({
  required this.field,
  required this.label,
  this.step = .01,
  this.pixelsPerStep = 4,
  this.handle = ShapeAdjustmentHandle.diamond,
  this.position,
  this.direction,
  this.drag,
  this.snapStops,
});