addRect method

void addRect (Rect rect)

Adds a new subpath that consists of four lines that outline the given rectangle.

Implementation

void addRect(Rect rect) {
  assert(_rectIsValid(rect));
  _addRect(rect.left, rect.top, rect.right, rect.bottom);
}