addRectangle method
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();
}