getViewport method
Implementation
RenderViewportBase? getViewport() {
RenderObject? parent = this.parent;
while (parent != null) {
if (parent is RenderViewportBase) {
return parent;
}
parent = parent.parent;
}
return null;
}