addRectangle method Null safety

void addRectangle(
  1. Rect bounds
)

Adds a rectangle

Implementation

void addRectangle(Rect bounds) {
  startFigure();
  _addPoints(<double>[
    bounds.left,
    bounds.top,
    bounds.left + bounds.width,
    bounds.top,
    bounds.left + bounds.width,
    bounds.top + bounds.height,
    bounds.left,
    bounds.top + bounds.height
  ], _PathPointType.line);
  closeFigure();
}