drawLine abstract method

void drawLine(
  1. Offset p1,
  2. Offset p2,
  3. Paint paint

Draws a line between the given points using the given paint. The line is stroked, the value of the Paint.style is ignored for this call.

The p1 and p2 arguments are interpreted as offsets from the origin.


void drawLine(Offset p1, Offset p2, Paint paint);