ar property

double get ar

Adaptive radius - scales uniformly using the smaller ratio.

This is ideal for border radius, icon sizes, and other values that should scale proportionally without distortion.

Implementation

double get ar {
  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.setRadius(this);
}