addLine method

void addLine(
  1. Offset point1,
  2. Offset point2
)

Adds a line

Implementation

void addLine(Offset point1, Offset point2) {
  _addPoints(<double>[point1.dx, point1.dy, point2.dx, point2.dy],
      PathPointType.line);
}