clearCache method

  1. @override
void clearCache()
override

Clears all cached layout calculations.

Forces the child to recalculate its layout on the next layout pass. Used when layout-affecting properties change.

Implementation

@override
void clearCache() {
  (renderBox.parentData as LayoutBoxParentData).cache = null;
}