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