rw property
double
get
rw
Calculates responsive width based on the design width values for the target device type.
This method adjusts the width based on the current screen width and the design width values for either a portrait or landscape phone. It scales the width proportionally between the minimum and maximum design widths.
Implementation
double get rw {
double designWidthValue = ScreenAdaptiveConfig.instance!.targetDeviceType ==
TargetDeviceType.phonePortrait
? ScreenAdaptiveConfig.instance!.designMinWidth
: ScreenAdaptiveConfig.instance!.designMaxWidth;
return (this * ScreenAdaptiveConfig.instance!.screenWidth) /
designWidthValue;
}