layoutCache property

  1. @override
ChildLayoutCache get layoutCache
override

The cache for storing computed layout results.

Provides access to cached sizes and measurements to avoid redundant calculations.

Implementation

@override
ChildLayoutCache get layoutCache {
  assert(
    box.parentData.cache != null,
    'Layout cache is not set. Did you forget to call setupCache()?',
  );
  return box.parentData.cache!;
}