getIntrinsicHeight method

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

Computes the intrinsic height of this widget under the given width constraint.

Implementation

@override
int getIntrinsicHeight(int width) {
  if (height != null) return height!;
  if (child != null) {
    return child!.getIntrinsicHeight(this.width ?? width);
  }
  return 0;
}