margin property
double
get
margin
Gets the responsive margin based on the current screen type. Defaults to GridConstants.mobileMargin if the screen type is not set.
Implementation
double get margin {
return switch (screenType) {
ScreenType.mobile => GridConstants.mobileMargin,
ScreenType.tablet => GridConstants.tabletMargin,
ScreenType.desktop => GridConstants.desktopMargin,
null => GridConstants.mobileMargin,
};
}