screenPhysicalWidth property

double get screenPhysicalWidth

The Physical width of the screen

Implementation

double get screenPhysicalWidth {
  double physicalWidth;
  final context = this.context;
  if (context == null) {
    physicalWidth = mainWindow.physicalSize.width;
  } else {
    final media = MediaQuery.of(context);
    physicalWidth = media.size.width * media.devicePixelRatio;
  }
  return physicalWidth;
}