width static method

double width(
  1. dynamic width
)

Implementation

static double width(width) {
  final view = PlatformDispatcher.instance.implicitView!;
  final screenWidth = view.physicalSize.width / view.devicePixelRatio;
  return screenWidth * (width / 375);
}