maxStickyDepthAcrossHosts property

int get maxStickyDepthAcrossHosts

Largest maxStickyDepth among attached render hosts, 0 when none pins headers. Config only: valid before the first layout. O(hosts), one in practice.

Implementation

int get maxStickyDepthAcrossHosts {
  int max = 0;
  for (final host in _renderHosts) {
    if (host.maxStickyDepth > max) {
      max = host.maxStickyDepth;
    }
  }
  return max;
}