setSimplificationTolerance method
Sets the simplification degree for the sketch in logical pixels.
0 means no simplification, 1px is a good starting point for most sketches. The higher the degree, the more the details will be eroded.
Info: Simplification quickly breaks simulated pressure, since it removes points that are close together first, so pressure simulation assumes a more even speed of the pen.
Changing this value by itself will only affect future lines. If you want to simplify existing lines, see simplify.
Implementation
void setSimplificationTolerance(double degree) {
temporaryValue = value.copyWith(
simplificationTolerance: degree,
);
}