value property
double
get
value
Get scaled value based on current screen size
Implementation
double get value {
double baseValue;
if (ScreenUtil.instance.isDesktop && desktop != null) {
baseValue = desktop!;
} else if (ScreenUtil.instance.isTablet && tablet != null) {
baseValue = tablet!;
} else {
baseValue = phone;
}
return ScreenUtil.instance.setWidth(baseValue);
}