setScaleFactor method

void setScaleFactor(
  1. double factor
)

Sets the zoom factor to allow for adjusting line width.

If the factor is 2 for example, lines will be drawn half as thick as actually selected to allow for drawing details. Has to be greater than 0.

Implementation

void setScaleFactor(double factor) {
  assert(factor > 0, "The scale factor must be greater than 0.");
  temporaryValue = value.copyWith(
    scaleFactor: factor,
  );
}