maxWidgetWidth property
double
get
maxWidgetWidth
Gets the responsive maximum width for a widget based on the current screen type. Defaults to mobileWidgetMaxWidth if the screen type is not set.
Implementation
double get maxWidgetWidth {
return switch (_currentScreenType) {
ScreenType.mobile => mobileWidgetMaxWidth,
ScreenType.tablet =>
desktopWidgetMaxWidth, // Uses desktopWidgetMaxWidth for tablets as well
ScreenType.desktop => desktopWidgetMaxWidth,
null => mobileWidgetMaxWidth,
};
}