rectangle method

void rectangle(
  1. double x,
  2. double y,
  3. double width,
  4. double height, {
  5. String? fill,
  6. String stroke = '#000000',
  7. double strokeWidth = 0.3,
  8. double radius = 0,
})

Implementation

void rectangle(
  double x,
  double y,
  double width,
  double height, {
  String? fill,
  String stroke = '#000000',
  double strokeWidth = 0.3,
  double radius = 0,
}) {
  _add(ReportElementType.rectangle, x, y, width, height, {
    'fillColor': fill,
    'strokeColor': stroke,
    'strokeWidth': strokeWidth,
    'borderRadius': radius,
  });
}