ShapeOutline.normalized constructor

ShapeOutline.normalized(
  1. DiagramVectorPath path, {
  2. bool cornerRadius = false,
})

A fixed path in unit coordinates, scaled to the frame.

Implementation

factory ShapeOutline.normalized(
  DiagramVectorPath path, {
  bool cornerRadius = false,
}) {
  path.validate();
  return ShapeOutline.path(
    (size, _) => _scaled(path, size),
    cornerRadius: cornerRadius,
  );
}