isSelfSizing static method

  1. @visibleForTesting
bool isSelfSizing({
  1. required BoxConstraints constraints,
  2. double? parentHeight,
})

The view measures its own content only when nothing else determines its height: no explicit AirshipEmbeddedView.parentHeight, and a parent that leaves the height unbounded.

Implementation

@visibleForTesting
static bool isSelfSizing({
  required BoxConstraints constraints,
  double? parentHeight,
}) =>
    parentHeight == null && !constraints.hasBoundedHeight;