getWidgetWidth method
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;
}