getTick method

Line getTick(
  1. double x, {
  2. double? size,
})

Implementation

Line getTick(double x, {double? size}) {
  size ??= tickSize;

  var tick = Line(start: DOWN * size, end: UP * size)
    ..rotate(getAngle())
    ..moveToPoint(numberToPoint(x))
    ..setColor(color: getColor())
    ..setFill(color: getFillColor())
    ..setStroke(color: getStrokeColor(), width: getStrokeWidth());

  return tick;
}