void pushClipRect(Rect rect)

Pushes a rectangular clip operation onto the operation stack.

Rasterization outside the given rectangle is discarded.

See pop for details about the operation stack.

Source

void pushClipRect(Rect rect) {
  _pushClipRect(rect.left, rect.right, rect.top, rect.bottom);
}