setScale method

void setScale(
  1. double ratio
)

Sets scale of whole line.

Implementation

void setScale(double ratio) {
  if (!isFilled) {
    return;
  }

  final arcData = PathUtil.scale<CubicArc>(_arcs, ratio);
  _arcs
    ..clear()
    ..addAll(arcData);

  final lineData = PathUtil.scale<CubicLine>(_lines, ratio);
  _lines
    ..clear()
    ..addAll(lineData);
}