clippingAncestorsOf method

Iterable<ResolvedShape> clippingAncestorsOf(
  1. ResolvedElement element
)

Clipping owners, nearest first, from this resolved world's ownership chain. Invalid chains fail rather than silently rendering outside missing clips.

Implementation

Iterable<ResolvedShape> clippingAncestorsOf(ResolvedElement element) {
  final ancestors = <ResolvedShape>[];
  _everyClippingAncestor(element, (parent) {
    ancestors.add(parent);
    return true;
  });
  return ancestors;
}