hasUnconstrainedBox method

Widget hasUnconstrainedBox(
  1. Widget widget
)

Implementation

Widget hasUnconstrainedBox(Widget widget) {
  if (width == double.infinity) {
    return widget;
  } else {
    return UnconstrainedBox(
      child: widget,
    );
  }
}