line method

Drawable line(
  1. double x1,
  2. double y1,
  3. double x2,
  4. double y2,
)

Draws a line from (x1, y1) to (x2, y2).

Implementation

Drawable line(double x1, double y1, double x2, double y2) {
  return _buildDrawable(OpSetBuilder.buildLine(x1, y1, x2, y2, drawConfig!));
}