aw property

double get aw

Adaptive width - scales based on the design width.

If your design is 375px wide and the actual screen is 750px, then 100.aw will return 200.0.

Implementation

double get aw {
  final context = AdaptiveContext.maybeContext;
  if (context == null) return toDouble();
  final data = AdaptiveData.maybeOf(context);
  if (data == null) return toDouble();
  final info = data.getDeviceInfo(context);
  return info.setWidth(this);
}