pushClip method

  1. @override
void pushClip(
  1. Rect clipRect
)
override

Pushes a new clip rectangle onto the stack, intersecting it with the current active clip.

Implementation

@override
void pushClip(Rect clipRect) {
  parent.pushClip(
    Rect(
      bounds.x + clipRect.x,
      bounds.y + clipRect.y,
      clipRect.width,
      clipRect.height,
    ),
  );
}