getIntrinsicWidth method
Returns the intrinsic width of this element.
Implementation
@override
int getIntrinsicWidth(int height) {
final sb = widget as SizedBox;
if (sb.width case final w? when w < BoxConstraints.infinity) return w;
final childHeight = switch (sb.height) {
final h? when h < BoxConstraints.infinity => h,
_ => height,
};
return childElement?.getIntrinsicWidth(childHeight) ?? 0;
}