line method

void line(
  1. double x,
  2. double y,
  3. double width, {
  4. String color = '#000000',
  5. double strokeWidth = 0.3,
})

Implementation

void line(
  double x,
  double y,
  double width, {
  String color = '#000000',
  double strokeWidth = 0.3,
}) {
  // The height of a line is its thickness, as in the designer.
  _add(ReportElementType.line, x, y, width, strokeWidth, {
    'color': color,
    'strokeWidth': strokeWidth,
  });
}