getMinIntrinsicHeight method

  1. @override
double getMinIntrinsicHeight(
  1. double width
)
override

Returns the minimum height that this box could be without failing to correctly paint its contents within itself, without clipping.

The width argument may give a specific width to assume. The given width can be infinite, meaning that the intrinsic height in an unconstrained environment is being requested. The given width should never be negative or null.

This function should only be called on one's children. Calling this function couples the child with the parent so that when the child's layout changes, the parent is notified (via markNeedsLayout).

Calling this function is expensive as it can result in O(N^2) behavior.

Do not override this method. Instead, implement computeMinIntrinsicHeight.

Implementation

@override
double getMinIntrinsicHeight(double width) =>
    _readsRoom ? computeMinIntrinsicHeight(width) : super.getMinIntrinsicHeight(width);