getIntrinsicHeight method

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

Returns the intrinsic height of this element.

Implementation

@override
int getIntrinsicHeight(int width) {
  final sb = widget as SizedBox;
  if (sb.height != null) return sb.height!;
  return childElement?.getIntrinsicHeight(sb.width ?? width) ?? 0;
}