logicalWidth property
double
get
logicalWidth
The screen in logical pixels — what the layout is written against.
Divided here rather than carried, so the two numbers cannot disagree about a screen: the physical size is what an address names and what a picture comes out at, and this is the same fact read the other way.
Implementation
double get logicalWidth => width / pixelRatio;