ShapeOutline.editablePath constructor

ShapeOutline.editablePath({
  1. String valueKey = 'path',
  2. bool cornerRadius = true,
})

The path each instance stores in the PathValueField valueKey, in unit coordinates, edited point by point.

Implementation

factory ShapeOutline.editablePath({
  String valueKey = 'path',
  bool cornerRadius = true,
}) => ShapeOutline.path(
  (size, values) =>
      _scaled(DiagramVectorPath.fromValue(values[valueKey])!, size),
  cornerRadius: cornerRadius,
  valueKey: valueKey,
);