getIntrinsicHeight method

  1. @override
int getIntrinsicHeight(
  1. int width
)
override

Returns the intrinsic height of this element.

Implementation

@override
int getIntrinsicHeight(int width) {
  final align = widget as Align;
  final childHeight = childElement?.getIntrinsicHeight(width) ?? 0;
  return align.heightFactor != null
      ? (childHeight * align.heightFactor!).round()
      : childHeight;
}