addRect method Null safety

void addRect(
  1. Rect rect
)

Adds a new sub-path 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);
}