markNeedsClip method
inherited
Mark this render object as needing to recalculate its clip.
Rather than eagerly recomputing the clip in response to writes, we instead
invalidate the cached clip and mark the render object as needing to paint,
which schedules a visual update. The clip is then recomputed lazily by
buildClip during the next paint or hit test pass.
Subclasses should call this method whenever an aspect of the clip shape or configuration changes without requiring a layout pass (for example, when RenderSliverClipRRect.borderRadius changes).
This method is also used as the listener callback when a listenable
clipper notifies that the clip needs to be recalculated.
See also:
buildClip, which computes the clip applied to the child.
Implementation
@protected
void markNeedsClip() {
_clip = null;
markNeedsPaint();
markNeedsSemanticsUpdate();
}