pathSet method
Implementation
pathSet(double value, bool flg, int i, int wLines) {
var h = boxSize + graphValue;
var h2 = -boxSize * 2 + graphValue;
var c = checkLine && baseLine && i == 0;
var c2 = checkLine && !baseLine && i == 2;
if (flg) {
/// Confirmation from top to bottom.
/// In that case, draw a line.
if (c) {
/// most bottom area point.
path.moveTo(0, value + boxSize);
path.relativeLineTo(sizeSet.width, 0);
} else if (c2) {
/// most top area point.
path.moveTo(0, value + boxSize + graphValue * 2);
path.relativeLineTo(sizeSet.width, 0);
}
} else {
/// Draw the X-axis sideways.
path.moveTo(sizeSet.width / wLines * i, h - graphValue);
path.relativeLineTo(0, h2 + graphValue);
}
}