getIntrinsicWidth method

  1. @override
int getIntrinsicWidth(
  1. int height
)
override

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

Implementation

@override
int getIntrinsicWidth(int height) {
  var totalWidth = 0;
  for (final child in children) {
    totalWidth += child.getIntrinsicWidth(height);
  }
  return totalWidth;
}