(node: LayoutNode, rect: Rect)
| 350 | } |
| 351 | |
| 352 | protected isVisible(node: LayoutNode, rect: Rect): boolean { |
| 353 | return ( |
| 354 | node.layoutInfo.rect.intersects(rect) || |
| 355 | node.layoutInfo.isSticky || |
| 356 | node.layoutInfo.type === 'header' || |
| 357 | node.layoutInfo.type === 'loader' || |
| 358 | this.virtualizer!.isPersistedKey(node.layoutInfo.key) |
| 359 | ); |
| 360 | } |
| 361 | |
| 362 | protected shouldInvalidateEverything(invalidationContext: InvalidationContext<O>): boolean { |
| 363 | // Invalidate cache if the cross-axis size of the collection changed (e.g. width, for a |
no test coverage detected