getWidgetWidth method

  1. @protected
double? getWidgetWidth(
  1. double parentWidth
)
inherited

Implementation

@protected
double? getWidgetWidth(double parentWidth) {
  double? widgetWidth = width ?? parentWidth;
  if (maxWidth != null && parentWidth > maxWidth!) {
    widgetWidth = maxWidth;
  }
  if (minWidth != null && parentWidth < minWidth!) {
    widgetWidth = minWidth;
  }
  return widgetWidth;
}