valueGetter method
num
valueGetter(
{ - num mobileAndPortrait = 0,
- num mobileAndLandscape = 0,
- num tabletAndPortrait = 0,
- num tabletAndLandscape = 0,
})
Implementation
num valueGetter({
num mobileAndPortrait = 0,
num mobileAndLandscape = 0,
num tabletAndPortrait = 0,
num tabletAndLandscape = 0,
}) {
if (isMobileAndPortrait) {
return mobileAndPortrait;
}
if (isMobileAndLandscape) {
return mobileAndLandscape;
}
if (isTabletAndPortrait) {
return tabletAndPortrait;
}
if (isTabletAndLandscape) {
return tabletAndLandscape;
}
return 0;
}