clipTo function

Painter clipTo(
  1. Painter p
)

Implementation

Painter clipTo(Painter p) {
  var q = _clippedScreens[p];
  if (q == null) {
    q = ClippedScreenPainter(p.frame);
    _clippedScreens[p] = q;
  }
  q.syncFrom(p);
  return q;
}