diameter property
double
get
diameter
Diameter scaling - scales by max(width, height) ratio.
Useful for larger scaling effects.
Implementation
double get diameter {
final context = AdaptiveContext.maybeContext;
if (context == null) return toDouble();
final data = AdaptiveData.maybeOf(context);
if (data == null) return toDouble();
final info = data.getDeviceInfo(context);
final maxScale = info.scaleWidth > info.scaleHeight
? info.scaleWidth
: info.scaleHeight;
return toDouble() * maxScale;
}