drawHorizontalLine function

void drawHorizontalLine(
  1. Path path,
  2. double x,
  3. double y,
  4. double width,
  5. double height,
)

Draw the Horizontal line shape marker

Implementation

void drawHorizontalLine(
    Path path, double x, double y, double width, double height) {
  path.moveTo(x - width / 2, y);
  path.lineTo(x + width / 2, y);
}